mirror of
https://github.com/immich-app/immich.git
synced 2025-11-27 00:35:16 -05:00
fix: sidebar link hightlight (#22035)
* fix: sidebar link hightlight * check if current route start with href
This commit is contained in:
parent
01fddd58c6
commit
3d883b27aa
@ -28,7 +28,7 @@
|
||||
}: Props = $props();
|
||||
|
||||
$effect(() => {
|
||||
isSelected = (page.url.pathname.match(/^\/(admin|user)\/[^/]*/) || [])[0] === href;
|
||||
isSelected = page.url.pathname.startsWith(href);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user