mirror of
https://github.com/ansible/awx.git
synced 2026-04-18 08:20:22 -02: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.
|
||||
return HttpResponseRedirect('http://%s/' % primary.hostname)
|
||||
return HttpResponseRedirect('http://%s%s' % (primary.hostname, request.path))
|
||||
|
||||
Reference in New Issue
Block a user