Skip to content

High performance self-hosted photo and video management solution.

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

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