From 7fea12affcfb1cd5034b7a1a7f7ed66a1bdd7783 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sat, 12 Aug 2023 14:13:18 -0700 Subject: [PATCH] Use relLangURL for content paths --- layouts/partials/paige/menu.html | 2 +- layouts/partials/paige/search.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/paige/menu.html b/layouts/partials/paige/menu.html index 5c5f51b6..303b9a28 100644 --- a/layouts/partials/paige/menu.html +++ b/layouts/partials/paige/menu.html @@ -1,6 +1,6 @@ {{ $page := . }} -{{ $basepath := path.Clean (urls.Parse site.BaseURL).Path }} +{{ $basepath := path.Clean (urls.Parse (relLangURL "")).Path }} {{ $pills := false }} {{ $tabs := false }} {{ $underline := false }} diff --git a/layouts/partials/paige/search.html b/layouts/partials/paige/search.html index 04423c19..201b89a5 100644 --- a/layouts/partials/paige/search.html +++ b/layouts/partials/paige/search.html @@ -64,9 +64,9 @@ if (paigeQueryElement !== null) { function paigeSearch(queryText) { paigeShow(paigeSearchingElement); - fetch("{{ absURL `index.json` | safeJS }}").then(function (response) { + fetch("{{ relLangURL `index.json` | safeJS }}").then(function (response) { if (response.status !== 200) { - console.log("Cannot load /index.json", response); + console.log("Cannot load {{ relLangURL `index.json` | safeJS }}", response); paigeHide(paigeSearchingElement); paigeShow(paigeErrorElement); return;