mirror of
https://github.com/flarum/framework.git
synced 2025-01-22 08:52:34 +08:00
forum: make DiscussionPage use m.route.set to change route
This commit is contained in:
parent
fa47228b3f
commit
bcaa6f4d8a
|
@ -270,7 +270,7 @@ export default class DiscussionPage extends Page {
|
||||||
// replace it into the window's history and our own history stack.
|
// replace it into the window's history and our own history stack.
|
||||||
const url = app.route.discussion(discussion, (this.near = startNumber));
|
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);
|
window.history.replaceState(null, document.title, url);
|
||||||
|
|
||||||
app.history.push('discussion', discussion.title());
|
app.history.push('discussion', discussion.title());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user