` +
`` + `${item.doc.title}` + `
` +
`` +
`${makeTeaser(item.doc.body, terms)}` +
@@ -168,9 +168,11 @@ function search() {
}
function openSearchModal() {
+ var baseUrl = window.location.protocol + "//" + window.location.host;
+ var indexScriptPath = baseUrl + '/search_index.en.js';
if (indexScriptLoaded === false) {
var indexScript = document.createElement('script');
- indexScript.setAttribute('src', './search_index.en.js');
+ indexScript.setAttribute('src', indexScriptPath);
document.head.appendChild(indexScript);
indexScriptLoaded = true;
}
diff --git a/templates/base.html b/templates/base.html
index 8170b44..41121c3 100755
--- a/templates/base.html
+++ b/templates/base.html
@@ -18,9 +18,13 @@
{% block search %}
-