#25519: "View Site" in admin shows wrong URL if site is not hosted at root
----------------------------------+------------------------------------
Reporter: DheerendraRathor | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: 1.8
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+------------------------------------
Changes (by Tim Graham <timograham@…>):
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"59e85f09c6c8171d5b24290d455e351063d81f5a" 59e85f0]:
{{{
#!CommitTicketReference repository=""
revision="59e85f09c6c8171d5b24290d455e351063d81f5a"
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 '/'.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25519#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/074.1ffc30cb67f63cc76b2662bcb97ca856%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.