Another bug fix

This commit is contained in:
Lim Chee Aun 2023-03-11 09:13:11 +08:00
parent cf437a83da
commit b4f8f92431

View file

@ -45,7 +45,9 @@ function handleContentLinks(opts) {
} else if (states.unfurledLinks[target.href]?.url) {
e.preventDefault();
e.stopPropagation();
states.prevLocation = location;
states.prevLocation = {
pathname: location.hash.replace(/^#/, ''),
};
location.hash = `#${states.unfurledLinks[target.href].url}`;
}
};