⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
fix(web): preserve full location in auth redirect
justina2772742e005
diff --git a/apps/web/src/routes/_layout/_authenticated.tsx b/apps/web/src/routes/_layout/_authenticated.tsxindex d9cc218dc..9b893d5d7 100644--- a/apps/web/src/routes/_layout/_authenticated.tsx+++ b/apps/web/src/routes/_layout/_authenticated.tsx@@ -1,3 +1,4 @@+import * as Sentry from "@sentry/react";import { createFileRoute, redirect } from "@tanstack/react-router";import { authClient } from "@/lib/auth-client";@@ -8,14 +9,16 @@ export const Route = createFileRoute("/_layout/_authenticated")({try {const { data } = await authClient.getSession();session = data;- } catch {+ } catch (error) {+ if (import.meta.env.DEV) console.warn("getSession failed", error);+ Sentry.captureException(error, { tags: { area: "auth.getSession" } });// getSession() rejected (e.g. network error) — treat as unauthenticated}if (!session) {throw redirect({to: "/auth/sign-in",search: {- redirect: location.pathname,+ redirect: location.href,},});}diff --git a/apps/web/src/routes/auth.tsx b/apps/web/src/routes/auth.tsxindex 7c56b4d87..64c7bf2cb 100644--- a/apps/web/src/routes/auth.tsx+++ b/apps/web/src/routes/auth.tsx@@ -1,3 +1,4 @@+import * as Sentry from "@sentry/react";import { createFileRoute, redirect } from "@tanstack/react-router";import { authClient } from "@/lib/auth-client";@@ -7,7 +8,9 @@ export const Route = createFileRoute("/auth")({try {const { data } = await authClient.getSession();session = data;- } catch {+ } catch (error) {+ if (import.meta.env.DEV) console.warn("getSession failed", error);+ Sentry.captureException(error, { tags: { area: "auth.getSession" } });// getSession() rejected — treat as unauthenticated, allow auth pages to render}if (session) {