Xss vulnerability

Fix xss vulnerability on redirect action