From b4dcde252b8720baac214720f2c6740ff1796bac Mon Sep 17 00:00:00 2001
From: 10bass <10bass@users.noreply.github.com>
Date: Mon, 24 Jul 2017 20:06:15 -0400
Subject: [PATCH] Update search.js

Trying to apply an exact match or tag would previously redirect to /search, regardless of the installation path.
---
 resources/assets/js/vues/search.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/resources/assets/js/vues/search.js b/resources/assets/js/vues/search.js
index 515ca3bc9..8cb790d24 100644
--- a/resources/assets/js/vues/search.js
+++ b/resources/assets/js/vues/search.js
@@ -149,7 +149,7 @@ let methods = {
 
     updateSearch(e) {
         e.preventDefault();
-        window.location = '/search?term=' + encodeURIComponent(this.termString);
+        window.location = window.baseUrl('/search?term=' + encodeURIComponent(this.termString));
     },
 
     enableDate(optionName) {
@@ -192,4 +192,4 @@ function created() {
 
 module.exports = {
     data, computed, methods, created
-};
\ No newline at end of file
+};