docs: add-current-path-to-version-switcher (#15860)

add-current-path-to-version-switcher
pull/15899/head
Nicholas Flamy 2025-02-04 04:09:07 +07:00 committed by GitHub
parent 0bb1219b5f
commit 5015210f37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

@ -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',
}))}
/>