mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
fix(web): restore correct back route when opening person asset via direct URL (#30129)
This commit is contained in:
parent
f24a128319
commit
3bd580e37d
1 changed files with 2 additions and 0 deletions
|
|
@ -95,6 +95,8 @@
|
|||
const getPreviousRoute = $page.url.searchParams.get(QueryParameter.PREVIOUS_ROUTE);
|
||||
if (getPreviousRoute && !isExternalUrl(getPreviousRoute)) {
|
||||
previousRoute = getPreviousRoute;
|
||||
} else if ($page.params.assetId) {
|
||||
previousRoute = Route.viewPerson(data.person);
|
||||
}
|
||||
if (action == 'merge') {
|
||||
viewMode = PersonPageViewMode.MERGE_PEOPLE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue