Fix clicking a status multiple times causing duplicate entries in browser history (#35118)

This commit is contained in:
Claire 2025-06-21 11:00:38 +02:00 committed by GitHub
parent adf812efb3
commit ac039d5f13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = () => {