query string is disappear after change language when localeSubpaths is true
See original GitHub issueWhen I enable localeSubpaths
. If I change language, the query string will be removed from the url.
Expected behavior
- Start on the url like
http://localhost:3000/?foo=123
- Change language by using
i18n.changeLanguage('de')
- The url will changed to
http://localhost:3000/de/?foo=123
Actual behavior
- Start on the url like
http://localhost:3000/?foo=123
- Change language by using
i18n.changeLanguage('de')
- The url will changed to
http://localhost:3000/de/
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
query string is disappear after change language ... - GitHub
When I enable localeSubpaths . If I change language, the query string will be removed from the url. Expected behavior.
Read more >Query String Parameters are getting disappeared after page is ...
I am opening a browser using URL and I am manually putting my query parameters along with the url of the webpage ...
Read more >@kichiyaki/next-i18next - npm package | Snyk
In the past month we didn't find any pull request activity or change in issues status has been detected for the GitHub repository....
Read more >Query string parameters disappear - Anvil Works
Hello. I am self-hosting an anvil app. When I put url query strings (e.g. https://some_url.com?key=value), they get removed from the URL and ...
Read more >The easiest way to translate your NextJs app - Morioh
Note: You can pass shallowRender: true into config options to avoid triggering getInitialProps when changeLanguage method is invoked. That's it! Your app is ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
While this may be a bit different but in my case, I need to have different query for different languages. For example, the slug will be language specific, e.g,
/en/english-slug
and/de/german-slug
. Currently, when changing the language, only the langcode is changed but the query remains the same. Is there any way I could achieve that?@capellini I can confirm that this problem is solved by #96. Thank!