diff options
author | Pablo Marcos <48572431+MarionMoseby@users.noreply.github.com> | 2021-05-17 21:32:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-17 21:32:39 +0300 |
commit | ac28e9824eb5babd4ebcd4e1ee23f5c1b5ce45a1 (patch) | |
tree | b79ad12ce861e62698ee37b37424546d3b26bb25 /static | |
parent | 16f64aa4c27d865b42aa2e8a5206274b734d2dac (diff) |
Make search multilingual (#305)
* Make search multilingual
* Added Support for custom country flags
* Add search.md for more language + fix search behavior
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
Co-authored-by: Pablo Marcos <codebergflamingo@staplehorse.anonaddy.com>
Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
Diffstat (limited to 'static')
-rw-r--r-- | static/js/search.js | 2 |
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); |