Redirection to an external URL

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