aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaheshtheDev <[email protected]>2024-08-01 15:06:02 -0700
committerMaheshtheDev <[email protected]>2024-08-01 15:06:02 -0700
commitfc8bfbe09a077d9432b740f4d2bc42e8daa1df19 (patch)
tree83d98c9b91cbb68a3178d9d95727a1b038d04277
parentnevermind. disabled sentry. again. (diff)
downloadsupermemory-fc8bfbe09a077d9432b740f4d2bc42e8daa1df19.tar.xz
supermemory-fc8bfbe09a077d9432b740f4d2bc42e8daa1df19.zip
fix telegram bot link issue
-rw-r--r--apps/web/app/(auth)/signin/page.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/web/app/(auth)/signin/page.tsx b/apps/web/app/(auth)/signin/page.tsx
index 3b563b90..35e6bab6 100644
--- a/apps/web/app/(auth)/signin/page.tsx
+++ b/apps/web/app/(auth)/signin/page.tsx
@@ -15,10 +15,11 @@ async function Signin({
}: {
searchParams: Record<string, string>;
}) {
+ const telegramUser = searchParams.telegramUser;
const user = await auth();
if (user) {
- redirect("/home");
+ redirect(`/home` + (telegramUser ? `?telegramUser=${telegramUser}` : ""));
}
return (