mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
redirect to primary host with the original requesting path preserved
This commit is contained in:
parent
556d7a8ac6
commit
da63fc64d0
@ -102,4 +102,4 @@ class HAMiddleware(object):
|
||||
})
|
||||
|
||||
# Redirect to the base page of the primary instance.
|
||||
return HttpResponseRedirect('http://%s/' % primary.hostname)
|
||||
return HttpResponseRedirect('http://%s%s' % (primary.hostname, request.path))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user