summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authoramzrk22020-07-24 09:11:02 +0800
committeramzrk22020-07-24 09:11:02 +0800
commitfa1c6b5ae768ef619e9ced7419a60f66e5010007 (patch)
tree79480be341245335eaf6474c2bc04029fe489966 /assets
parent0c502fd74ff7898624f87a402161527802d5b2bb (diff)
downloadhugo-theme-fuji-fa1c6b5ae768ef619e9ced7419a60f66e5010007.tar.gz
hugo-theme-fuji-fa1c6b5ae768ef619e9ced7419a60f66e5010007.tar.bz2
hugo-theme-fuji-fa1c6b5ae768ef619e9ced7419a60f66e5010007.zip
Fix search index relative link issue
Diffstat (limited to 'assets')
-rw-r--r--assets/js/fuji.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/fuji.js b/assets/js/fuji.js
index 8074e2e..994119b 100644
--- a/assets/js/fuji.js
+++ b/assets/js/fuji.js
@@ -132,7 +132,7 @@ if (urlParams.has('s')) {
document.querySelector('.search-input input').setAttribute('value', key);
// get search index from json
let xhr = new XMLHttpRequest();
- xhr.open('GET', '/index.json', true);
+ xhr.open('GET', 'index.json', true);
xhr.responseType = 'json';
xhr.onerror = () => {
infoElements[2].removeAttribute('style');