]> BookStack Code Mirror - bookstack/commitdiff
Update search.js 448/head
author10bass <redacted>
Tue, 25 Jul 2017 00:06:15 +0000 (20:06 -0400)
committerGitHub <redacted>
Tue, 25 Jul 2017 00:06:15 +0000 (20:06 -0400)
Trying to apply an exact match or tag would previously redirect to /search, regardless of the installation path.

resources/assets/js/vues/search.js

index 515ca3bc9dfb8d8c327d1dc5cb8521a3df279442..8cb790d2456565a68bd50258506dec48aa186195 100644 (file)
@@ -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
+};