diff --git a/assets/js/search.js b/assets/js/search.js index 40e1797d5aeda..d786cef0f0ddb 100644 --- a/assets/js/search.js +++ b/assets/js/search.js @@ -32,7 +32,8 @@ limitations under the License. } var query = $(this).val(); - document.location = "{{ "search/" | absURL }}?q=" + query; + var searchPage = $(this).data('search-page') + "?q=" + query; + document.location = searchPage; return false; }); diff --git a/layouts/partials/search-input.html b/layouts/partials/search-input.html index 822bf1e146d6e..e66a5ce4930f5 100644 --- a/layouts/partials/search-input.html +++ b/layouts/partials/search-input.html @@ -27,6 +27,7 @@