﻿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
18987	Django contrib admin redirection error on actions	audirs2 [at] gmail.com	nobody	"When user remote user authentication backend and accessing django application via Nginx proxy on subdomain behind this proxy the admin interface does not redirect from admin actions correctly.

Settings below are applied:
{{{
FORCE_SCRIPT_NAME=''
APPEND_SLASH=False
}}}
Server is running mod_wsgi

accessing works ok.

https://djangoapp.domain.com/admin/

When using an admin action to add/delete etc redirects badly.

E.g. on page url below you update some config and click add as the admin action, the underlying code carries out the action.

https://djangoapp.domain.com/admin/appname/add/

However when django redirects back to the apps list of objects it redirects badly to a url shown in the form below

https://djangoapp.domain.com/admin/appname/add/.domain.com/admin/appname/add/

It appears that the url resolution is using the domain with subdomain stripped and then as this is not the same full url it appends this url to the current one"	Uncategorized	closed	contrib.admin	1.4	Normal	invalid	redirect remote_auth_backend nginx		Unreviewed	0	0	0	0	0	0
