From aaa034786a498e18c8f6eb6e85b56d55429ff5fc Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Mon, 10 May 2021 11:09:55 +1000 Subject: [PATCH] FIX: Remove auto-route from topic-link (#12999) This was needed to fix a bookmark back button issue but it broke category topic links, causing a full reload. Now it appears something has changed in core and this is no longer necessary for the bookmark back button to work, so I am removing it again. --- app/assets/javascripts/discourse/app/helpers/topic-link.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/app/helpers/topic-link.js b/app/assets/javascripts/discourse/app/helpers/topic-link.js index 3102626950b..2a8bb170e8f 100644 --- a/app/assets/javascripts/discourse/app/helpers/topic-link.js +++ b/app/assets/javascripts/discourse/app/helpers/topic-link.js @@ -14,7 +14,6 @@ registerUnbound("topic-link", (topic, args) => { const result = `${title}`; + data-topic-id='${topic.id}'>${title}`; return htmlSafe(result); });