We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11a4dbe commit 9af1ea7Copy full SHA for 9af1ea7
src/components/overrides/Head.astro
@@ -6,7 +6,8 @@ import "tippy.js/dist/tippy.css";
6
7
import { getEntry } from "astro:content";
8
9
-const currentSection = Astro.url.pathname.split("/")[1];
+// grab the current top-level folder. Remove . characters for 1.1.1.1 URL
10
+const currentSection = Astro.url.pathname.split("/")[1].replaceAll(".", "");
11
12
if (currentSection) {
13
const product = await getEntry("products", currentSection);
0 commit comments