Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hossainemruz/toha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/search.js')
-rw-r--r--static/js/search.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/js/search.js b/static/js/search.js
index 197ddba..1a6ceab 100644
--- a/static/js/search.js
+++ b/static/js/search.js
@@ -31,7 +31,7 @@ if(searchQuery){
function executeSearch(searchQuery){
- $.getJSON( "/index.json", function( data ) {
+ $.getJSON( window.location.href.split("/search/")[0] + "/index.json", function( data ) {
var pages = data;
var fuse = new Fuse(pages, fuseOptions);
var result = fuse.search(searchQuery);