fixing unescape problems with redirect page