Changes between Version 1 and Version 2 of Ticket #28720


Ignore:
Timestamp:
Oct 18, 2017, 8:40:19 AM (7 years ago)
Author:
Tim Graham
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28720

    • Property Triage Stage UnreviewedAccepted
    • Property Summary Add HttpRequest.get_full_path_infoAdd HttpRequest.get_full_path_info()
  • Ticket #28720 – Description

    v1 v2  
    1 `HttpRequest.get_full_path` returns the `HttpRequest.path` based full path, including query string. Example: `/posts/12345/?foo=bar`.
     1`HttpRequest.get_full_path()` returns the `HttpRequest.path` based full path, including query string. Example: `/posts/12345/?foo=bar`.
    22
    3 We should add a counterpart for `HttpRequest.path_info` that includes the `SCRIPT_NAME`, if set. Example: `/scriptname/posts/12345/?foo=bar`
     3We should add a counterpart for `HttpRequest.path_info()` that includes the `SCRIPT_NAME`, if set. Example: `/scriptname/posts/12345/?foo=bar`
    44
    55Example use case: Adding hreflang meta tags to your `<head>` section. This must include the `SCRIPT_NAME` prefix as well, otherwise invalid URLs are given.
     
    99}}}
    1010
    11 Patch: https://github.com/django/django/pull/9253
     11[https://github.com/django/django/pull/9253 PR]
Back to Top