Closed ddohler closed 12 years ago
you mean: go to /who, click on a representative, click on the language switcher in the navigation and then the previously selected representative doesn't show up? that's not a quicky, because the state change (selected representative) is not reflected in the URL. but i guess it can be solved by placing some information in the user's cookie.
Yep, that's exactly the issue. I think there may be another way besides cookies though; newer browsers accept push-state, but I'm not sure how that would interact with Django. But yeah, I understand that this may take a while.
done. i actually did a similar thing when asking questions. most of the time i struggled to figure out some javascript code because i had forgotten about a certain code path.
Cool, I noticed it was working before reading this. Nice!
Currently, when switching languages, the selected MP is forgotten and the page reverts to the default.