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