mirror of
https://github.com/ansible/awx.git
synced 2026-03-11 06:29:31 -02:30
Merge pull request #4579 from AlanCoding/redirect_warning
Obey the suggestion in RemovedInDjango19Warning
This commit is contained in:
@@ -25,6 +25,8 @@ logger = logging.getLogger('awx.sso.views')
|
|||||||
|
|
||||||
class BaseRedirectView(RedirectView):
|
class BaseRedirectView(RedirectView):
|
||||||
|
|
||||||
|
permanent = True
|
||||||
|
|
||||||
def get_redirect_url(self, *args, **kwargs):
|
def get_redirect_url(self, *args, **kwargs):
|
||||||
last_path = self.request.COOKIES.get('lastPath', '')
|
last_path = self.request.COOKIES.get('lastPath', '')
|
||||||
last_path = urllib.quote(urllib.unquote(last_path).strip('"'))
|
last_path = urllib.quote(urllib.unquote(last_path).strip('"'))
|
||||||
|
|||||||
Reference in New Issue
Block a user