Fix redirection on error page

Issue https://github.com/AUTUpStageTeam/UpStage2013/issues/11