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) {
|
} else if (states.unfurledLinks[target.href]?.url) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
states.prevLocation = location;
|
states.prevLocation = {
|
||||||
|
pathname: location.hash.replace(/^#/, ''),
|
||||||
|
};
|
||||||
location.hash = `#${states.unfurledLinks[target.href].url}`;
|
location.hash = `#${states.unfurledLinks[target.href].url}`;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue