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