mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-13 09:28:50 +01:00
Another bug fix
This commit is contained in:
parent
cf437a83da
commit
b4f8f92431
1 changed files with 3 additions and 1 deletions
|
@ -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}`;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue