#kentprojects-55 Added port handling to 302 redirect