﻿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
19658	Login redirects use wrong URL when application doesn't live on web server root	david.reitter@…	nobody	"My application (running on 1.5rc1) sees a request whose view is decorated with @permission_required('admin') redirected to a wrong login URL.

The WSGI application (on Apache2) is mounted in a subdirectory such as www.example.com/foo/...

The redirect to the login page, given a request to www.example.com/foo/exp/manage/ then goes to:

www.example.com/accounts/login/?next=/foo/exp/manage/

rather than

www.example.com/foo/accounts/login/?next=/foo/exp/manage/

LOGIN_URL is not set in my settings.py, as it wouldn't be portable without further ado.

"	Uncategorized	closed	contrib.auth	dev	Normal	worksforme			Unreviewed	0	0	0	0	0	0
