Use turbolinks instead of window.location

This commit is contained in:
Clement Ho 2016-12-12 21:19:16 -06:00
parent 091a3e66e9
commit bcb00bdc48

View file

@ -167,7 +167,7 @@
paths.push(`search=${encodeURIComponent(searchToken)}`); paths.push(`search=${encodeURIComponent(searchToken)}`);
} }
window.location = `?scope=all&utf8=✓&${paths.join('&')}`; Turbolinks.visit(`?scope=all&utf8=✓&${paths.join('&')}`);
} }
} }