fixed error in redirection where an url was given as a parameter