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:
parent
512808e8b4
commit
cafabff89e
1 changed files with 0 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue