TanStackT
TanStack12mo ago
14 replies
forward-apricot

navigate to external url with tanstack router / start

Hey everyone,

I couldnt find how to navigate to an external url using tanstack router / start.
I am currently doing it in this way but I am wondering if tanstack router supports a better way to navigate to an external url ?

  const githubSignIn = useMutation({
    mutationFn: githubSignInAction,
    onSuccess: (url) => {
      startRedirectTransition(async () => {
        window.location.href = url;
      });
    },
  });
Was this page helpful?