mirror of
https://github.com/immich-app/immich.git
synced 2025-05-31 04:05:39 -04:00
docs: add-current-path-to-version-switcher (#15860)
add-current-path-to-version-switcher
This commit is contained in:
parent
0bb1219b5f
commit
5015210f37
@ -49,7 +49,7 @@ export default function VersionSwitcher(): JSX.Element {
|
|||||||
mobile={windowSize === 'mobile'}
|
mobile={windowSize === 'mobile'}
|
||||||
items={versions.map(({ label, url }) => ({
|
items={versions.map(({ label, url }) => ({
|
||||||
label,
|
label,
|
||||||
to: url,
|
to: url + location.pathname,
|
||||||
target: '_self',
|
target: '_self',
|
||||||
}))}
|
}))}
|
||||||
/>
|
/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user