Fix absolute path when searching
This commit is contained in:
parent
1e467d5d3b
commit
7531c642ff
@ -84,8 +84,8 @@ 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user