Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n.changeLanguage is not working properly with Next dynamic page #490

Closed
vimutti77 opened this issue Sep 3, 2019 · 1 comment
Closed

Comments

@vimutti77
Copy link

Describe the bug

Calling i18n.changeLanguage(foo) in dynamic page is not working properly. The language is changed but the url is not.

Occurs in next-i18next version

version: 1.1.2

Steps to reproduce

  1. Open a dynamic page with localSubpath (eg. /en/product/[id])
  2. Calling i18n.changeLanguage('ge')

Expected behaviour

  • Language is change to 'ge'
  • Url is changed to /ge/product/[id]
  • No error

Actual behaviour

  • Language is change to 'ge'
  • Url is not changed
  • Get an error Your <Link> 's as value is incompatible with the href value. This is invalid.

OS (please complete the following information)

  • Device: PC Windows 10
  • Browser: Chrome version 76.0.3809.132
@isaachinman
Copy link
Contributor

Thanks for opening this. After reading through it, it does indeed seem to be the same problem as #413.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants