Use absURL for index.json

This commit is contained in:
Will Faught
2023-08-02 21:35:22 -07:00
parent abaed5b901
commit 8be8c204fa

View File

@@ -64,7 +64,7 @@ if (paigeQueryElement !== null) {
function paigeSearch(queryText) {
paigeShow(paigeSearchingElement);
fetch("/index.json").then(function (response) {
fetch("{{ absURL `index.json` | safeJS }}").then(function (response) {
if (response.status !== 200) {
console.log("Cannot load /index.json", response);
paigeHide(paigeSearchingElement);