1
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:
Simon Marsh 2019-02-12 11:44:15 +00:00
parent 1e467d5d3b
commit 7531c642ff
No known key found for this signature in database
GPG Key ID: 7B9FE8780CFB6593

View File

@ -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
)