diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2016-12-13 06:19:16 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-01-10 01:01:23 +0300 |
commit | bcb00bdc487ad0d0e95c4a46a7d9437dcefc4e33 (patch) | |
tree | 29e07ccb53299f22f6150f08a9174e5d36f3c88e /app | |
parent | 091a3e66e9f2616eefca0f3aba090063116629e2 (diff) |
Use turbolinks instead of window.location
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/filtered_search/filtered_search_manager.js.es6 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/filtered_search/filtered_search_manager.js.es6 b/app/assets/javascripts/filtered_search/filtered_search_manager.js.es6 index 2237a21ca60..e087d0fd45b 100644 --- a/app/assets/javascripts/filtered_search/filtered_search_manager.js.es6 +++ b/app/assets/javascripts/filtered_search/filtered_search_manager.js.es6 @@ -167,7 +167,7 @@ paths.push(`search=${encodeURIComponent(searchToken)}`); } - window.location = `?scope=all&utf8=✓&${paths.join('&')}`; + Turbolinks.visit(`?scope=all&utf8=✓&${paths.join('&')}`); } } |