diff --git a/web/src/routes/(user)/search/+page.svelte b/web/src/routes/(user)/search/+page.svelte index 727d72c151..1c8a895183 100644 --- a/web/src/routes/(user)/search/+page.svelte +++ b/web/src/routes/(user)/search/+page.svelte @@ -76,6 +76,10 @@ previousRoute = from.url.href; } + if (from?.route.id === '/(user)/people/[personId]') { + previousRoute = AppRoute.PHOTOS; + } + if (from?.route.id === '/(user)/albums/[albumId]') { previousRoute = AppRoute.EXPLORE; }