From c8f47d519dfee2611cd31f866903363d6219b073 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Thu, 27 Aug 2020 12:43:53 -0400 Subject: [PATCH] Use the current route when when applying changeSort instead of always going to index --- js/src/forum/states/GlobalSearchState.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/forum/states/GlobalSearchState.js b/js/src/forum/states/GlobalSearchState.js index e45bf729c..787e47fd7 100644 --- a/js/src/forum/states/GlobalSearchState.js +++ b/js/src/forum/states/GlobalSearchState.js @@ -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)); } /**