django/django — pull request #591 by dgerzo (2012-12-15 17:49:43+00:00)
Title: - fix locale middleware redirect url handling for views that do not end ...

...with '/'

and the settings.APPEND_SLASH option is True

example: i18n urlpattern ^sitemap\.xml$ would result in something like
language_path=u'/en/sitemap.xml/' which in turn results in 404 because that
doesn't match the original urlpattern.