I have a javascript function which redirects user to a diff page. It goes like this... redirect : function(url)