mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 09:06:23 +01:00
Quick fix for back link not working for unfurled mastodon links
This is obviously the wrong 'location'
This commit is contained in:
parent
66e068ee7b
commit
cff8c90478
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ 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;
|
||||||
location.hash = `#${states.unfurledLinks[target.href].url}`;
|
location.hash = `#${states.unfurledLinks[target.href].url}`;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue