From e9b267a33a4576c0f772afb936d8c13754c6f2f8 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Thu, 27 Aug 2020 12:40:09 -0400 Subject: [PATCH] Call onRoute before refreshParams, so we can use app.current.get('routeName') in discussion params --- js/src/forum/components/IndexPage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/src/forum/components/IndexPage.js b/js/src/forum/components/IndexPage.js index 433f5196f..a8cc4b6fb 100644 --- a/js/src/forum/components/IndexPage.js +++ b/js/src/forum/components/IndexPage.js @@ -48,11 +48,12 @@ export default class IndexPage extends Page { const curPath = m.route.get(); if (this.currentPath !== curPath) { + this.onNewRoute(); + app.discussions.clear(); app.discussions.refreshParams(app.search.params()); - this.onNewRoute(); this.currentPath = curPath; this.setTitle();