﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
19099	Broken link email sent on redirect by i18n_patterns	Aymeric Augustin	Aymeric Augustin	"With the following settings:
{{{
MIDDLEWARE_CLASSES = {
        # ...,
        'django.middleware.locale.LocaleMiddleware',
        'django.middleware.common.CommonMiddleware',
        # ...,
}
SEND_BROKEN_LINKS_EMAIL = True
}}}
when a redirect to an i18n'd URL occurs, a broken link email is sent.

I'm attaching a failing test case.

This may be the expected behavior, but it's hard to diagnose. I started receiving broken link emails for '/', with various referrers and UAs. But going to that URL worked and didn't send an email, because there's no referrer when you go straight to the URL.

The solution might be documenting that `CommonMiddleware` must come before `LocaleMiddleware`. The commit logs say that they used to be in that order, but that we swapped them because `APPEND_SLASH` didn't work (I haven't re-verified this yet). And then I started receiving the broken link emails."	Bug	closed	Core (Other)	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
