mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #21177 -- Made resolve_url support relative URLs.
This fixes redirecting to relative URLs with django.shortcuts.redirect.
This commit is contained in:
committed by
Tim Graham
parent
f3805f5c52
commit
e3d0790bd0
@@ -677,6 +677,9 @@ Requests
|
||||
* The new :attr:`HttpRequest.scheme <django.http.HttpRequest.scheme>` attribute
|
||||
specifies the scheme of the request (``http`` or ``https`` normally).
|
||||
|
||||
* The shortcut :func:`redirect() <django.shortcuts.redirect>` now supports
|
||||
relative URLs.
|
||||
|
||||
Tests
|
||||
^^^^^
|
||||
|
||||
|
||||
Reference in New Issue
Block a user