redirect to primary host with the original requesting path preserved

This commit is contained in:
Chris Meyers 2015-01-21 13:53:46 -05:00
parent 556d7a8ac6
commit da63fc64d0

View File

@ -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))