Fix Shop product location switcher path

This commit is contained in:
2021-11-16 14:53:38 +01:00
parent bcc03459c6
commit 4b05186662

View File

@@ -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 })
}
</script>