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:
committed by
Franz Liedke
parent
554c72c6db
commit
e9b267a33a
@@ -48,11 +48,12 @@ export default class IndexPage extends Page {
|
|||||||
const curPath = m.route.get();
|
const curPath = m.route.get();
|
||||||
|
|
||||||
if (this.currentPath !== curPath) {
|
if (this.currentPath !== curPath) {
|
||||||
|
this.onNewRoute();
|
||||||
|
|
||||||
app.discussions.clear();
|
app.discussions.clear();
|
||||||
|
|
||||||
app.discussions.refreshParams(app.search.params());
|
app.discussions.refreshParams(app.search.params());
|
||||||
|
|
||||||
this.onNewRoute();
|
|
||||||
this.currentPath = curPath;
|
this.currentPath = curPath;
|
||||||
|
|
||||||
this.setTitle();
|
this.setTitle();
|
||||||
|
Reference in New Issue
Block a user