Skip to content

Commit 4829b41

Browse files
committed
Update VersionSelector.astro
1 parent bc1a634 commit 4829b41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/components/VersionSelector.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import navigation from '../navigation.json'
33
4-
let segments = Astro.url.pathname.match(/\/([0-9]*\.x)\/([a-z\-\_]*)\/([a-z\-\_]*)\/([a-z\-\_]*)/) || ["/4.x/introduction/overview/", "4.x", "introduction", "overview"];
4+
let segments = Astro.url.pathname.match(/\/([0-9]*\.x)\/([a-z\-\_]*)\/([a-z\-\_]*)\/([a-z\-\_]*)/) || Astro.url.pathname.match(/\/([0-9]*\.x)\/([a-z\-\_]*)\/([a-z\-\_]*)/) || ["/4.x/introduction/overview/", "4.x", "introduction", "overview"];
55
let currentVersion = segments[1].replaceAll("/", "");
66
let currentSection = segments[2].replaceAll("/", "");
77
let currentPage = (segments[3] ?? null)?.replaceAll("/", "");

0 commit comments

Comments
 (0)