Skip to content

Commit

Permalink
Fix back button moving between posts in discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
askvortsov1 committed Aug 11, 2020
1 parent 230c1de commit a1c8ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/forum/components/DiscussionPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export default class DiscussionPage extends Page {
const url = app.route.discussion(discussion, (this.near = startNumber));

this.prevRoute = url;
m.route.set(url);
m.route.set(url, true, { replace: true });
window.history.replaceState(null, document.title, url);

app.history.push('discussion', discussion.title());
Expand Down

0 comments on commit a1c8ae1

Please sign in to comment.