stuff done
This commit is contained in:
@@ -21,7 +21,9 @@ export default function LocaleSwitcher() {
|
||||
path: '/',
|
||||
sameSite: 'Lax'
|
||||
})
|
||||
router.replace(window.location.pathname.replace(/^\/ru/, ''), {locale})
|
||||
let path = window.location.pathname.replace(/^\/ru/, '')
|
||||
if (path === '') path = '/'
|
||||
router.replace(path, {locale})
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user