From b7af8f5eb2ea24222378b3bd2ea3ec9d31165915 Mon Sep 17 00:00:00 2001 From: Erik Tiekstra Date: Fri, 10 Oct 2025 12:02:20 +0000 Subject: [PATCH] fix(BOOK-138): Back to cities on mobile map view Approved-by: Chuma Mcphoy (We Ahead) --- .../components/ContentType/DestinationPage/Map/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/scandic-web/components/ContentType/DestinationPage/Map/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/Map/index.tsx index 12f00da0b..f4c9ce6ec 100644 --- a/apps/scandic-web/components/ContentType/DestinationPage/Map/index.tsx +++ b/apps/scandic-web/components/ContentType/DestinationPage/Map/index.tsx @@ -97,10 +97,8 @@ export default function Map({ function handleClose() { if (fromCountryPage) { - const url = new URL(window.location.href) - url.searchParams.set("view", "map") - router.push(url.toString()) setActiveLocation(null) + router.back() } else { backToListView() }