I have used window.location.replace() for redirection based on user\'s input. From a security review, this has been flagged as vulnerable to DOM based XSS. I am a newbie and