Fix Shop product location switcher path
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user