From 5015210f37f0c60ad135a32c2a481c5a21087eb6 Mon Sep 17 00:00:00 2001 From: Nicholas Flamy <30300649+NicholasFlamy@users.noreply.github.com> Date: Tue, 4 Feb 2025 04:09:07 -0500 Subject: [PATCH] docs: add-current-path-to-version-switcher (#15860) add-current-path-to-version-switcher --- docs/src/components/version-switcher.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/components/version-switcher.tsx b/docs/src/components/version-switcher.tsx index b89a65c6e4ae9..56fcd4f569453 100644 --- a/docs/src/components/version-switcher.tsx +++ b/docs/src/components/version-switcher.tsx @@ -49,7 +49,7 @@ export default function VersionSwitcher(): JSX.Element { mobile={windowSize === 'mobile'} items={versions.map(({ label, url }) => ({ label, - to: url, + to: url + location.pathname, target: '_self', }))} />