diff --git a/awx/main/middleware.py b/awx/main/middleware.py index 6cc395b458..a4b72bf91f 100644 --- a/awx/main/middleware.py +++ b/awx/main/middleware.py @@ -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))