Skip to content

Commit

Permalink
docs: add-current-path-to-version-switcher (#15860)
Browse files Browse the repository at this point in the history
add-current-path-to-version-switcher
  • Loading branch information
NicholasFlamy authored Feb 4, 2025
1 parent 0bb1219 commit 5015210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/components/version-switcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}))}
/>
Expand Down

0 comments on commit 5015210

Please sign in to comment.