From cff8c904783705ff862ae16c112375384e0a8f99 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 8 Mar 2023 23:33:53 +0800 Subject: [PATCH] Quick fix for back link not working for unfurled mastodon links This is obviously the wrong 'location' --- src/utils/handle-content-links.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/handle-content-links.js b/src/utils/handle-content-links.js index 14c742c6..153cae15 100644 --- a/src/utils/handle-content-links.js +++ b/src/utils/handle-content-links.js @@ -45,6 +45,7 @@ function handleContentLinks(opts) { } else if (states.unfurledLinks[target.href]?.url) { e.preventDefault(); e.stopPropagation(); + states.prevLocation = location; location.hash = `#${states.unfurledLinks[target.href].url}`; } };