From 81e0168e440e0e5f2381f885a9282a33cbe19e6e Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Thu, 18 Sep 2025 15:30:06 +0300 Subject: [PATCH] Enhance ProPage: Update bot URL handling for trial subscriptions - Introduced a new URL construction for the bot link, incorporating a 'start' parameter set to 'pro' for improved trial subscription management. - Updated the link in the ProPage to utilize the newly constructed bot URL, ensuring users are directed correctly for Pro access through the bot. --- apps/web/app/(main)/pro/page.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/web/app/(main)/pro/page.tsx b/apps/web/app/(main)/pro/page.tsx index 1ef9bc2..734dec3 100644 --- a/apps/web/app/(main)/pro/page.tsx +++ b/apps/web/app/(main)/pro/page.tsx @@ -15,6 +15,9 @@ export default async function ProPage() { const canUseTrial = !usedTrialSubscription; + const botUrl = new URL(env.BOT_URL); + botUrl.searchParams.set('start', 'pro'); + return (
@@ -57,7 +60,7 @@ export default async function ProPage() { size="lg" variant={canUseTrial ? 'outline' : 'default'} > - + Приобрести Pro доступ через бота