From 2f4d1b7f427da8fc8028cc5f47edcfa27dbd32fd Mon Sep 17 00:00:00 2001 From: Bryan Stopp Date: Wed, 29 Nov 2023 14:43:20 -0600 Subject: [PATCH 1/3] Correct loading path for fragments --- cigaradvisor/blocks/footer/footer.js | 2 +- cigaradvisor/blocks/header/header.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cigaradvisor/blocks/footer/footer.js b/cigaradvisor/blocks/footer/footer.js index e1dbe938..bf75a916 100644 --- a/cigaradvisor/blocks/footer/footer.js +++ b/cigaradvisor/blocks/footer/footer.js @@ -10,7 +10,7 @@ export default async function decorate(block) { block.textContent = ''; // load footer fragment - const footerPath = footerMeta.footer || '/footer'; + const footerPath = footerMeta.footer || '/cigaradvisor/footer'; const fragment = await loadFragment(footerPath); // decorate footer DOM diff --git a/cigaradvisor/blocks/header/header.js b/cigaradvisor/blocks/header/header.js index 6b240361..775c5138 100644 --- a/cigaradvisor/blocks/header/header.js +++ b/cigaradvisor/blocks/header/header.js @@ -93,7 +93,7 @@ function toggleMenu(nav, navSections, forceExpanded = null) { export default async function decorate(block) { // load nav as fragment const navMeta = getMetadata('nav'); - const navPath = navMeta ? new URL(navMeta).pathname : '/nav'; + const navPath = navMeta ? new URL(navMeta).pathname : '/cigaradvisor/nav'; const fragment = await loadFragment(navPath); // decorate nav DOM From 4f4253badbdd76989cfedf976698959efb1a9615 Mon Sep 17 00:00:00 2001 From: Bryan Stopp Date: Wed, 29 Nov 2023 14:45:49 -0600 Subject: [PATCH 2/3] Fix PR template. --- .github/pull_request_template.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 8999d6b9..3d125cc2 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -3,5 +3,5 @@ Please always provide the [GitHub issue(s)](../issues) your PR is for, as well a Fix # Test URLs: -- Before: https://main--{repo}--{owner}.hlx.page/ -- After: https://--{repo}--{owner}.hlx.page/ +- Before: https://main--famous-smoke-cigaradvisor--hlxsites.hlx.page/ +- After: https://--famous-smoke-cigaradvisor--hlxsites.hlx.page/ From 33c15f8cfa65b5afa7524378d25b85031ea63212 Mon Sep 17 00:00:00 2001 From: Bryan Stopp Date: Wed, 29 Nov 2023 14:46:41 -0600 Subject: [PATCH 3/3] Fix PR template. --- .github/pull_request_template.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 3d125cc2..ecfb88b1 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -3,5 +3,5 @@ Please always provide the [GitHub issue(s)](../issues) your PR is for, as well a Fix # Test URLs: -- Before: https://main--famous-smoke-cigaradvisor--hlxsites.hlx.page/ -- After: https://--famous-smoke-cigaradvisor--hlxsites.hlx.page/ +- Before: https://main--famous-smoke-cigaradvisor--hlxsites.hlx.page/cigaradvisor/ +- After: https://--famous-smoke-cigaradvisor--hlxsites.hlx.page/cigaradvisor/