mirror of
https://git.burble.com/burble.dn42/dn42regsrv.git
synced 2024-02-26 20:28:04 +01:00
Fix absolute path when searching
This commit is contained in:
parent
1e467d5d3b
commit
7531c642ff
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user