Fixed redirect causing a cross site scripting error in shib environments