mirror of
https://github.com/immich-app/immich.git
synced 2026-03-11 12:47:36 +03:00
fix(web): back button from person detail page (#5047)
* feat: return button to the main page * add album route * feat: do not use explicit routes
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
import { assetViewingStore } from '$lib/stores/asset-viewing.store';
|
||||
import LoadingSpinner from '$lib/components/shared-components/loading-spinner.svelte';
|
||||
import { mdiPlus, mdiDotsVertical, mdiArrowLeft } from '@mdi/js';
|
||||
import { isExternalUrl } from '$lib/utils/navigation';
|
||||
|
||||
export let data: PageData;
|
||||
|
||||
@@ -126,7 +127,7 @@
|
||||
onMount(() => {
|
||||
const action = $page.url.searchParams.get('action');
|
||||
const getPreviousRoute = $page.url.searchParams.get('previousRoute');
|
||||
if (getPreviousRoute) {
|
||||
if (getPreviousRoute && !isExternalUrl(getPreviousRoute)) {
|
||||
previousRoute = getPreviousRoute;
|
||||
}
|
||||
if (action == 'merge') {
|
||||
|
||||
Reference in New Issue
Block a user