The URL must be pointing to a page on the same host, otherwise the user will be redirected to the WordPress Dashboard after logging in. If a redirect to another domain is required, it must be added by using the filter allowed_redirect_hosts (this codex page provides an example).