From 8be8c204fabd0824f51f74ccd90c3a78be10523b Mon Sep 17 00:00:00 2001 From: Will Faught Date: Wed, 2 Aug 2023 21:35:22 -0700 Subject: [PATCH] Use absURL for index.json --- layouts/partials/paige/search.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/paige/search.html b/layouts/partials/paige/search.html index b9d59a76..04423c19 100644 --- a/layouts/partials/paige/search.html +++ b/layouts/partials/paige/search.html @@ -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);