vaidikkp/zamboni — comment on commit 33620397d40f5af148380acd850f1e5cabf54d55
File:  line 0
By cvan:

I know this already works, but you should write a test that ensures that the GET variables are preserved on redirects since it looks like we don't already have a test for this case (for public pages):

1. go to /en-US/extensions/?sort=name
2. try changing language to French ("fr"): /en-US/extensions/?sort=name&lang=fr
3. check that you got redirected to /fr/extensions/?sort=name

you could add this test here with a single line: https://github.com/mozilla/zamboni/blob/master/apps/amo/tests/test_url_prefix.py#L88