From cafabff89e3dec2e57d5c91234fa0c6e73dadc84 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Tue, 15 Aug 2017 11:31:22 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20duplicate=20subdirs=20in?= =?UTF-8?q?=20plaintext=20(#8882)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- core/server/models/post.js | 1 - 1 file changed, 1 deletion(-) diff --git a/core/server/models/post.js b/core/server/models/post.js index 301c153711..2a8922e07d 100644 --- a/core/server/models/post.js +++ b/core/server/models/post.js @@ -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,