1. Carl Meyer
  2. django-localeurl
  3. Issues
Issue #7 resolved

The change_locale view strips query parameters from 'next'

Anonymous created an issue

The change_locale view strips query parameters from the locale view with: {{{ next = urlsplit(next).path }}}

I guess the reason to use urlsplit is to clean up if the next variable is pulled from HTTP_REFERER? Or is there any other reason? Can it just be moved up into the HTTP_REFERER if block?

This is handled differently from how for example contrib.auth handles login where the next query parameters are preserved.

Comments (1)

  1. Log in to comment