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 ba3fbfe commit b2f3259Copy full SHA for b2f3259
docs/src/components/VersionSelector.astro
@@ -1,7 +1,7 @@
1
---
2
import navigation from '../navigation.json'
3
4
-let segments = Astro.url.pathname.match(/\/([0-9]*\.x)\/([a-z\-\_]*)\/([a-z\-\_]*)\/([a-z\-\_]*)/) || ["/4.x/introduction/overflow/", "4.x", "introduction", "overview"];
+let segments = Astro.url.pathname.match(/\/([0-9]*\.x)\/([a-z\-\_]*)\/([a-z\-\_]*)\/([a-z\-\_]*)/) || ["/4.x/introduction/overview/", "4.x", "introduction", "overview"];
5
let currentVersion = segments[1].replaceAll("/", "");
6
let currentSection = segments[2].replaceAll("/", "");
7
let currentPage = (segments[3] ?? null)?.replaceAll("/", "");
0 commit comments