You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an error loading search-index.json file if the baseurl is set to anything else than "/"
Steps to reproduce
Make a new installation and set baseurl to "/something/"
Expected result
search-index.json is loaded
Actual result
search-index.json is not loaded
Environment
Not provided - useless
Bug location
In the file doks-core/assets/js/flexsearch.js is a mistake - baseURL is not used at all.
I have fixed it on my side using fetch('{{ "search-index.json" | absURL }}'), but this will not work for more languages
Description
There is an error loading search-index.json file if the baseurl is set to anything else than "/"
Steps to reproduce
Make a new installation and set baseurl to "/something/"
Expected result
search-index.json is loaded
Actual result
search-index.json is not loaded
Environment
Not provided - useless
Bug location
In the file doks-core/assets/js/flexsearch.js is a mistake - baseURL is not used at all.
I have fixed it on my side using
fetch('{{ "search-index.json" | absURL }}')
, but this will not work for more languagesOriginal code:
The text was updated successfully, but these errors were encountered: