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
No known key found for this signature in database
GPG Key ID: F764F1417E16B15F

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());