Whenever langauge is toggled, any existing searchParams in the url dispaear #77
Unanswered
brightpixels
asked this question in
Q&A
Replies: 1 comment 1 reply
-
This is not remix-i18next issue, when you use a Remix Form component they don’t keep the search params, or if you redirected inside your loader or action you need to keep the search params yourself. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Whenever we change the toggle the language the page reloads with the correct language and the url is updated with the relveant searchParams, so something like this www.mydomain.com/page1?lng=es BUT if there is existing searchParams like this www.mydomain.com/page1?currentPage=2&month=3, the language toggle causes existing seachParams to be lost and replaced with just the lng searchParam.
I have also noticed the same thing happens if the page reloads with errors after form submission. All the existing searchParams are lost, which leads me to think it's not specifically to do with this library but maybe a Remix expected behaviour or bug.
Beta Was this translation helpful? Give feedback.
All reactions