Closed ashish0910 closed 4 years ago
I have started working on this issue .
I think this is the expected result. Retaining the query data can give rise to unexpected bugs.
@NikhilM98 I don't think it is a good idea . It will have a very bad impact on user experience . for example if you have set 3-4 parameters such as name , sort and classroom and then you change the language , it will delete all the queries and will show default result and then user will have to set all those parameters . @llaske what are your views on it ?
@ashish0910 To fix this, you've to check the query string on language change, search for the language parameter in the string, and adjust it accordingly retaining the other parameters. But this will cause the user to make the GET request twice on the route with the same parameters. This may have undesirable consequences in certain cases. This may also lead to other bugs in the future.
I cannot locate this issue in the Journal View. Can you please upload the screenshot?
@ashish0910 To fix this, you've to check the query string on language change, search for the language parameter in the string, and adjust it accordingly retaining the other parameters. But this will cause the user to make the GET request twice on the route with the same parameters. This may have undesirable consequences in certain cases. This may also lead to other bugs in the future.
@NikhilM98 we might need some other way to handle this issue .
After switching the language the reload takes place and forgets the query of the user and redirects to default situation which is not good .
Example :
Similar behaviour takes place in case of journal also .