Changes between Version 1 and Version 2 of Ticket #28720
- Timestamp:
- Oct 18, 2017, 8:40:19 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28720
- Property Triage Stage Unreviewed → Accepted
- Property Summary Add HttpRequest.get_full_path_info → Add 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`. 2 2 3 We should add a counterpart for `HttpRequest.path_info ` that includes the `SCRIPT_NAME`, if set. Example: `/scriptname/posts/12345/?foo=bar`3 We should add a counterpart for `HttpRequest.path_info()` that includes the `SCRIPT_NAME`, if set. Example: `/scriptname/posts/12345/?foo=bar` 4 4 5 5 Example use case: Adding hreflang meta tags to your `<head>` section. This must include the `SCRIPT_NAME` prefix as well, otherwise invalid URLs are given. … … 9 9 }}} 10 10 11 Patch: https://github.com/django/django/pull/9253 11 [https://github.com/django/django/pull/9253 PR]