mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-01-19 19:15:40 +08:00
Update search.js
Trying to apply an exact match or tag would previously redirect to /search, regardless of the installation path.
This commit is contained in:
parent
f200b4183d
commit
b4dcde252b
|
@ -149,7 +149,7 @@ let methods = {
|
||||||
|
|
||||||
updateSearch(e) {
|
updateSearch(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
window.location = '/search?term=' + encodeURIComponent(this.termString);
|
window.location = window.baseUrl('/search?term=' + encodeURIComponent(this.termString));
|
||||||
},
|
},
|
||||||
|
|
||||||
enableDate(optionName) {
|
enableDate(optionName) {
|
||||||
|
@ -192,4 +192,4 @@ function created() {
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
data, computed, methods, created
|
data, computed, methods, created
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user