Redirection to an external URL

Add a new argument (url) to the redirectTo function to redirect to an external URL.