Opened 16 years ago
Last modified 11 years ago
#7603 closed
The Request object should have a "scheme" attribute — at Initial Version
Reported by: | nslater | Owned by: | nobody |
---|---|---|---|
Component: | HTTP handling | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
As it stands, the scheme is located at requestwsgi.url_scheme which translates as {{ request.wsgi.url_scheme}} which is invalid for obvious reasons, leaving no way to access this value from the template.
The Request object should be modified to have a "scheme" attritbute.
I could then do this from a template:
<img src="{{ request.scheme }}://{{ site.domain }}/logo"/>
Note:
See TracTickets
for help on using tickets.