From 9ac8f1543a75cc7fada469b06641941fff512e1d Mon Sep 17 00:00:00 2001 From: Matthew Kilgore Date: Fri, 7 Aug 2020 20:38:37 -0400 Subject: [PATCH] update: forum/utils/History.js --- js/src/forum/utils/History.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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('/'); } }