From 7a9a9473d1f84c2dbc709a6bf5a0ff2734aa3e5b Mon Sep 17 00:00:00 2001 From: martin <74269598+martabal@users.noreply.github.com> Date: Tue, 12 Dec 2023 23:55:18 +0100 Subject: [PATCH] fix: prevent loop on search (#5664) --- web/src/routes/(user)/search/+page.svelte | 4 ++++ 1 file changed, 4 insertions(+) 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; }