EZP-21591: Fixed redirection loop.