Skip to content

Commit 390eeb1

Browse files
authored
Work around compat break in old index.hbs templates with new searcher.js
Problem reported in #2742 (comment)
1 parent ec6f26e commit 390eeb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/front-end/searcher/searcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ window.search = window.search || {};
434434

435435
function showSearch(yes) {
436436
if (yes) {
437-
loadSearchScript(window.path_to_searchindex_js, 'search-index');
437+
loadSearchScript(window.path_to_searchindex_js || (path_to_root + '{{ resource "searchindex.js" }}'), 'search-index');
438438
search_wrap.classList.remove('hidden');
439439
searchicon.setAttribute('aria-expanded', 'true');
440440
} else {

0 commit comments

Comments
 (0)