﻿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
33592	view_on_site redirect does not work for custom admin site.	Stefan Wehrmeyer	Stefan Wehrmeyer	"All `reverse` calls in `contrib/admin/options.py` have a `current_app` keyword argument, so they resolve with the current (possibly custom) admin site – except the `reverse` call in `get_view_on_site_url`. This lead to custom admin sites using the default admin to redirect via `view_on_site.

This is clearly a bug. When the default admin is handled with extra protections outside of Django (e.g. additional basic auth), users of the custom admin cannot use the ""view on site"" link because it routes through the default admin.

Patch is easy and already here: https://github.com/django/django/pull/15526

I'll try to provide a regression test as well."	Bug	closed	contrib.admin	4.0	Normal	fixed			Ready for checkin	1	0	0	0	0	0
