Handle redirections & url with query params