From 7531c642ff459af9fbd63b5a14a8ae8a821451fc Mon Sep 17 00:00:00 2001 From: Simon Marsh Date: Tue, 12 Feb 2019 11:44:15 +0000 Subject: [PATCH] Fix absolute path when searching --- StaticRoot/explorer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/StaticRoot/explorer.js b/StaticRoot/explorer.js index e3dbf4e..0cfef5f 100644 --- a/StaticRoot/explorer.js +++ b/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 )