Fix Shop product location switcher path
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
// Quick location change
|
// Quick location change
|
||||||
const quickLocationChange = ({ target: { value }}: any) => {
|
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 })
|
goto(newPath, { replaceState: true, noscroll: true, keepfocus: true })
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user