mirror of https://github.com/jpanther/congo.git
🐛 Ensure trailing forward slash in baseURL during search index build.
Hopefully fixes issue #223, where search functionality was broken from website deployed to netlifypull/224/head
parent
ba7d006681
commit
71dae159ca
|
@ -107,6 +107,7 @@ function fetchJSON(path, callback) {
|
||||||
|
|
||||||
function buildIndex() {
|
function buildIndex() {
|
||||||
var baseURL = wrapper.getAttribute("data-url");
|
var baseURL = wrapper.getAttribute("data-url");
|
||||||
|
baseURL = baseURL.replace(/\/?$/, '/');
|
||||||
fetchJSON(baseURL + "index.json", function (data) {
|
fetchJSON(baseURL + "index.json", function (data) {
|
||||||
var options = {
|
var options = {
|
||||||
shouldSort: true,
|
shouldSort: true,
|
||||||
|
|
Loading…
Reference in New Issue