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}`; } };