Open antonio-spinelli opened 11 months ago
Instead of the hardcoded fix, is there a way to get the i18n configuration of Next so we can use that as the source of truth? it's indeed also possible that you're using the locale somewhere else in the url and don't want that replaced
π Current behavior
the fix on push method work on all the url, even on the domain part and not only on the path
if the url is something like
https://it.mydomain.eu/product
with the locale part in third level domain, it will replace the url tohttps://.mydomain.eu/product
π Steps to reproduce
Live reproduction
unable to reproduce on codesandbox
π Expected behavior
should only replace the path part
Possibile Solution
you can try with a regex like this: https://regex101.com/r/U8mzbj/1
Package version
7.3.0
Operating system
No response
Browser
No response
Code of Conduct