]> cat aescling's git repositories - mastodon.git/commitdiff
Do not replace history state
authorThibaut Girka <thib@sitedethib.com>
Sun, 27 May 2018 19:33:04 +0000 (21:33 +0200)
committerThibG <thib@sitedethib.com>
Tue, 18 Dec 2018 20:39:35 +0000 (21:39 +0100)
This is both for consistency with account timelines and to not mess with
the logic used to decide whether going back in the browser's history is
going to make us leave the WebUI.

app/javascript/flavours/glitch/features/community_timeline/components/section_headline.js

index c7176d04b8064d4428479c34399912a824ca3771..8c0c68cdc73595b8ec0ecf48e1d491fc399eba76 100644 (file)
@@ -48,8 +48,8 @@ export default class SectionHeadline extends Component {
           </Fragment>
         ) : (
           <Fragment>
-            <NavLink exact to={to} replace><FormattedMessage id='timeline.posts' defaultMessage='Toots' /></NavLink>
-            <NavLink exact to={`${to}/media`} replace><FormattedMessage id='timeline.media' defaultMessage='Media' /></NavLink>
+            <NavLink exact to={to}><FormattedMessage id='timeline.posts' defaultMessage='Toots' /></NavLink>
+            <NavLink exact to={`${to}/media`}><FormattedMessage id='timeline.media' defaultMessage='Media' /></NavLink>
           </Fragment>
         )}
       </div>