Skip to content

Commit 9af1ea7

Browse files
authored
[Astro] 1.1.1.1 product selector for head (#20084)
* [Astro] 1.1.1.1 product selector for head * remove testing
1 parent 11a4dbe commit 9af1ea7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/overrides/Head.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import "tippy.js/dist/tippy.css";
66
77
import { getEntry } from "astro:content";
88
9-
const currentSection = Astro.url.pathname.split("/")[1];
9+
// grab the current top-level folder. Remove . characters for 1.1.1.1 URL
10+
const currentSection = Astro.url.pathname.split("/")[1].replaceAll(".", "");
1011
1112
if (currentSection) {
1213
const product = await getEntry("products", currentSection);

0 commit comments

Comments
 (0)