diff --git a/js/src/forum/utils/History.js b/js/src/forum/utils/History.js index 003e9b96c..2b52eb48b 100644 --- a/js/src/forum/utils/History.js +++ b/js/src/forum/utils/History.js @@ -49,7 +49,7 @@ export default class History { * not provided. * @public */ - push(name, title, url = m.route()) { + push(name, title, url = m.route.get()) { // If we're pushing an item with the same name as second-to-top item in the // stack, we will assume that the user has clicked the 'back' button in // their browser. In this case, we don't want to push a new item, so we will @@ -92,7 +92,7 @@ export default class History { this.stack.pop(); - m.route(this.getCurrent().url); + m.route.set(this.getCurrent().url); } /** @@ -114,6 +114,6 @@ export default class History { home() { this.stack.splice(0); - m.route('/'); + m.route.set('/'); } }