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

Use the current route when when applying changeSort instead of always going to index

This commit is contained in:
Alexander Skvortsov
2020-08-27 12:43:53 -04:00
committed by Franz Liedke
parent e9b267a33a
commit c8f47d519d

View File

@@ -67,7 +67,7 @@ export default class GlobalSearchState extends SearchState {
params.sort = sort;
}
setRouteWithForcedRefresh(app.route(this.searchRoute, params));
setRouteWithForcedRefresh(app.route(app.current.get('routeName'), params));
}
/**