1
0
mirror of https://github.com/flarum/core.git synced 2025-08-09 18:07:02 +02:00

Fix back button moving between posts in discussion

This commit is contained in:
Alexander Skvortsov
2020-08-10 20:27:49 -04:00
committed by Franz Liedke
parent e5cebd85ed
commit a48568b17a

View File

@@ -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, null, { replace: true });
window.history.replaceState(null, document.title, url);
app.history.push('discussion', discussion.title());