diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx
index 432b4c5..c805f7e 100644
--- a/src/routes/__root.tsx
+++ b/src/routes/__root.tsx
@@ -11,6 +11,7 @@ import {
Scripts,
createRootRoute,
useLocation,
+ useNavigate,
} from "@tanstack/react-router";
import { TanStackRouterDevtools } from "@tanstack/react-router-devtools";
import * as React from "react";
@@ -61,13 +62,13 @@ export const Route = createRootRoute({
{ rel: "icon", href: "/favicon.ico" },
],
}),
- errorComponent: (props) => {
- return (
-
- Red Dwarf is a bluesky client that uses Constellation and - direct PDS queries. Skylite would be a - self-hosted bluesky "instance". Stay tuned for the release of Skylite. + Red Dwarf is a bluesky client that uses Constellation and direct PDS + queries. Skylite would be a self-hosted bluesky "instance". Stay + tuned for the release of Skylite.
@@ -409,7 +415,11 @@ function RootDocument({ children }: { children: React.ReactNode }) { }`} onClick={() => { if (authed && agent && agent.assertDid) { - window.location.href = `/profile/${agent.assertDid}`; + //window.location.href = `/profile/${agent.assertDid}`; + navigate({ + to: "/profile/$did", + params: { did: agent.assertDid }, + }) } }} type="button"