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)
|
clearTimeout(this.searchTimeout)
|
||||||
}
|
}
|
||||||
|
|
||||||
// map an empty search box to the landing page
|
// link should be an absolute path
|
||||||
if (value == "") { value = "/" }
|
value = '/' + value
|
||||||
|
|
||||||
this.searchTimeout = setTimeout(
|
this.searchTimeout = setTimeout(
|
||||||
this.$router.push.bind(this.$router, value), 500
|
this.$router.push.bind(this.$router, value), 500
|
||||||
|
Loading…
x
Reference in New Issue
Block a user