mirror of
https://github.com/flarum/core.git
synced 2025-08-07 08:56:38 +02:00
Call onRoute before refreshParams, so we can use app.current.get('routeName') in discussion params
This commit is contained in:
committed by
Franz Liedke
parent
554c72c6db
commit
e9b267a33a
@@ -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();
|
||||
|
Reference in New Issue
Block a user