mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-16 09:18:46 +00:00
Fix clicking a status multiple times causing duplicate entries in browser history (#35118)
This commit is contained in:
@@ -300,9 +300,13 @@ class Status extends ImmutablePureComponent {
|
||||
|
||||
if (newTab) {
|
||||
window.open(path, '_blank', 'noopener');
|
||||
} else {
|
||||
if (history.location.pathname.replace('/deck/', '/') === path) {
|
||||
history.replace(path);
|
||||
} else {
|
||||
history.push(path);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
handleHotkeyOpenProfile = () => {
|
||||
|
||||
Reference in New Issue
Block a user