﻿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
25519	"""View Site"" in admin shows wrong URL if site is not hosted at root"	Dheerendra Rathor	nobody	"In django-admin `VIEW_SITE` should redirect to base of hosted site. If site is not hosted at the root but at some other location, then still `VIEW_SITE` redirects to absolute root of the site.

Example:
Suppose site is hosted at `http://example.com/mysite/` and I'm using `SCRIPT_NAME` HTTP header in my proxy server. `{% url 'some_url' %}` results into `/mysite/some/url/` which is correct. But `site_url` in django admin is hardcoded to `/`. 

Here is the relevant code snippet from `django.contrib.admin.sites.AdminSite`
{{{#!python
# URL for the ""View site"" link at the top of each admin page.
site_url = '/'
}}}"	Bug	closed	contrib.admin	1.8	Normal	fixed			Accepted	1	1	0	0	0	0
