From: 10bass Date: Tue, 25 Jul 2017 00:06:15 +0000 (-0400) Subject: Update search.js X-Git-Tag: v0.17.4~1^2~5^2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/refs/pull/448/head?ds=inline Update search.js Trying to apply an exact match or tag would previously redirect to /search, regardless of the installation path. --- diff --git a/resources/assets/js/vues/search.js b/resources/assets/js/vues/search.js index 515ca3bc9..8cb790d24 100644 --- a/resources/assets/js/vues/search.js +++ b/resources/assets/js/vues/search.js @@ -149,7 +149,7 @@ let methods = { updateSearch(e) { e.preventDefault(); - window.location = '/search?term=' + encodeURIComponent(this.termString); + window.location = window.baseUrl('/search?term=' + encodeURIComponent(this.termString)); }, enableDate(optionName) { @@ -192,4 +192,4 @@ function created() { module.exports = { data, computed, methods, created -}; \ No newline at end of file +};