Skip to content

Commit

Permalink
Merge pull request #889 from xai/issues/882
Browse files Browse the repository at this point in the history
GH-882 Follow-up: Fix search for websites using subpaths in baseURL
  • Loading branch information
stp-ip authored Dec 20, 2022
2 parents 047ce89 + c339683 commit 6bee4e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class SynaSearch {
return callback(this.indexCache);
}

$.ajax({ method: 'get', url: (window.location.origin + window.location.pathname).replace(/[\/]search[\/]$/, '') + 'index.json' }).then((data) => {
$.ajax({ method: 'get', url: (window.location.origin + window.location.pathname).replace(/[\/]search[\/]$/, '/') + 'index.json' }).then((data) => {
this.indexCache = data;
callback(data);
});
Expand Down
2 changes: 1 addition & 1 deletion assets/scripts/syna-search.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6bee4e9

Please sign in to comment.