mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-25 18:23:37 -05:00
Merge pull request #34 from chrismeyersfsu/fix-tower_ha_redirect
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