diff options
| author | MaheshtheDev <[email protected]> | 2024-08-01 15:06:02 -0700 |
|---|---|---|
| committer | MaheshtheDev <[email protected]> | 2024-08-01 15:06:02 -0700 |
| commit | fc8bfbe09a077d9432b740f4d2bc42e8daa1df19 (patch) | |
| tree | 83d98c9b91cbb68a3178d9d95727a1b038d04277 | |
| parent | nevermind. disabled sentry. again. (diff) | |
| download | supermemory-fc8bfbe09a077d9432b740f4d2bc42e8daa1df19.tar.xz supermemory-fc8bfbe09a077d9432b740f4d2bc42e8daa1df19.zip | |
fix telegram bot link issue
| -rw-r--r-- | apps/web/app/(auth)/signin/page.tsx | 3 |
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 ( |