1
0
mirror of https://github.com/flarum/core.git synced 2025-08-07 17:07:19 +02:00

Call onRoute before refreshParams, so we can use app.current.get('routeName') in discussion params

This commit is contained in:
Alexander Skvortsov
2020-08-27 12:40:09 -04:00
committed by Franz Liedke
parent 554c72c6db
commit e9b267a33a

View File

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