Browse Source

Fix absolute path when searching

Simon Marsh 1 year ago
parent
commit
7531c642ff
1 changed files with 3 additions and 3 deletions
  1. 3 3
      StaticRoot/explorer.js

+ 3 - 3
StaticRoot/explorer.js

@@ -84,9 +84,9 @@ Vue.component('search-input', {
                 clearTimeout(this.searchTimeout)
             }
 
-            // map an empty search box to the landing page
-            if (value == "") { value = "/" }            
-
+            // link should be an absolute path
+            value = '/' + value
+            
             this.searchTimeout = setTimeout(
                 this.$router.push.bind(this.$router, value), 500
             )