From 4b051866621c63bea24d8da85241e9763893d827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Tue, 16 Nov 2021 14:53:38 +0100 Subject: [PATCH] Fix Shop product location switcher path --- src/components/molecules/ShopLocationSwitcher.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/molecules/ShopLocationSwitcher.svelte b/src/components/molecules/ShopLocationSwitcher.svelte index 7e61b73..f56e5b9 100644 --- a/src/components/molecules/ShopLocationSwitcher.svelte +++ b/src/components/molecules/ShopLocationSwitcher.svelte @@ -14,7 +14,7 @@ // Quick location change const quickLocationChange = ({ target: { value }}: any) => { - const newPath = $page.path.split('-')[0] + `-${value}` + const newPath = `/shop/poster-${value}` goto(newPath, { replaceState: true, noscroll: true, keepfocus: true }) }