diff --git a/docs/src/components/version-switcher.tsx b/docs/src/components/version-switcher.tsx
index b89a65c6e4..56fcd4f569 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',
         }))}
       />