mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-06-25 09:42:54 -04:00
🐛 Ensure trailing forward slash in baseURL during search index build.
Hopefully fixes issue #223, where search functionality was broken from website deployed to netlify
This commit is contained in:
@@ -107,6 +107,7 @@ function fetchJSON(path, callback) {
|
||||
|
||||
function buildIndex() {
|
||||
var baseURL = wrapper.getAttribute("data-url");
|
||||
baseURL = baseURL.replace(/\/?$/, '/');
|
||||
fetchJSON(baseURL + "index.json", function (data) {
|
||||
var options = {
|
||||
shouldSort: true,
|
||||
|
||||
Reference in New Issue
Block a user