Skip to content

Commit 7ec083e

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/front-end/searcher/searcher.js

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

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

0 commit comments

Comments
 (0)