I'm trying to use the router.back()
, but I'm also using i18n localization.
I start at the Home page which is "localhost/"
and navigate to
"localhost/auth/sign-in"
.
Now on changing the language (which has its specific route) "localhost/firstLang/auth/sign-in"
and then changing again to another language "localhost/secondLang/auth/sign-in"
.
When I want to navigate back using router.back()
I want to be navigated to "localhost/secondLang"
not to "localhost/firstLang/auth/sign-in"
.