From fc8bfbe09a077d9432b740f4d2bc42e8daa1df19 Mon Sep 17 00:00:00 2001 From: MaheshtheDev Date: Thu, 1 Aug 2024 15:06:02 -0700 Subject: fix telegram bot link issue --- apps/web/app/(auth)/signin/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/web/app') 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; }) { + const telegramUser = searchParams.telegramUser; const user = await auth(); if (user) { - redirect("/home"); + redirect(`/home` + (telegramUser ? `?telegramUser=${telegramUser}` : "")); } return ( -- cgit v1.2.3