Use full path for search index
If the search page is viewed without a trailing slash, it reads the wrong index file and lunr silently fails, resulting in no results being shown
This commit is contained in:
parent
ee78a994e9
commit
16003b57a5
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ $(document).ready(function() {
|
|||
const initialSearchTerm = getInitialSearchTerm();
|
||||
searchInput.val(initialSearchTerm);
|
||||
|
||||
$.getJSON('./index.json', function(data) {
|
||||
$.getJSON('/search/index.json', function(data) {
|
||||
// populate the index
|
||||
searchIndex = lunr(function() {
|
||||
this.ref('id');
|
||||
|
|
Loading…
Reference in a new issue