diff --git a/app/javascript/mastodon/components/status.jsx b/app/javascript/mastodon/components/status.jsx index 0f9d751eb..29fd4234d 100644 --- a/app/javascript/mastodon/components/status.jsx +++ b/app/javascript/mastodon/components/status.jsx @@ -301,7 +301,11 @@ class Status extends ImmutablePureComponent { if (newTab) { window.open(path, '_blank', 'noopener'); } else { - history.push(path); + if (history.location.pathname.replace('/deck/', '/') === path) { + history.replace(path); + } else { + history.push(path); + } } };