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

forum: make DiscussionPage use m.route.set to change route

This commit is contained in:
David Sevilla Martin
2020-02-23 09:36:51 -05:00
parent fa47228b3f
commit bcaa6f4d8a

View File

@@ -270,7 +270,7 @@ export default class DiscussionPage extends Page {
// replace it into the window's history and our own history stack.
const url = app.route.discussion(discussion, (this.near = startNumber));
m.route(url, true);
m.route.set(url, true);
window.history.replaceState(null, document.title, url);
app.history.push('discussion', discussion.title());