mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #25519 -- Made the admin "View site" link point to sites running on a subpath.
Used request.META['SCRIPT_NAME'] as the site_url if it hasn't been customized from the default value of '/'.
This commit is contained in:
committed by
Tim Graham
parent
3f300efede
commit
59e85f09c6
@@ -32,7 +32,9 @@ Minor features
|
||||
:mod:`django.contrib.admin`
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
* ...
|
||||
* For sites running on a subpath, the default :attr:`URL for the "View site"
|
||||
link <django.contrib.admin.AdminSite.site_url>` at the top of each admin page
|
||||
will now point to ``request.META['SCRIPT_NAME']`` if set, instead of ``/``.
|
||||
|
||||
:mod:`django.contrib.admindocs`
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Reference in New Issue
Block a user