0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

🐛 Fixed duplicate subdirs in plaintext (#8882)

fixes #8845

- We had a report of weird URLS being output in admin stories view
- This is due to plaintext being incorrectly generated
- In order for a URL to be correct, it would need to already contain the subdirectory
- This line in the post model adds it as well, causing a duplicate
- Hence removing this line is the fix
This commit is contained in:
Hannah Wolfe 2017-08-15 11:31:22 +01:00 committed by Kevin Ansfield
parent 512808e8b4
commit cafabff89e

View file

@ -244,7 +244,6 @@ Post = ghostBookshelf.Model.extend({
this.set('plaintext', htmlToText.fromString(this.get('html'), {
wordwrap: 80,
ignoreImage: true,
linkHrefBaseUrl: utils.url.urlFor('home').replace(/\/$/, ''),
hideLinkHrefIfSameAsText: true,
preserveNewlines: true,
returnDomByDefault: true,