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:
@@ -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());
|
||||
|
Reference in New Issue
Block a user