fix(notifications): correct subscription CTA path to /dashboard/subscription
Some checks failed
QA Gate (P0/P1) / Test affected app (pull_request) Has been cancelled

The trial-ending / payment-success / payment-failed emails were pointing
to /dashboard/settings?tab=subscription which does not exist; the correct
path is /dashboard/subscription. Referral paths are unchanged.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
semih
2026-06-04 12:31:50 +03:00
parent 306e8eb691
commit eecc173ecc
2 changed files with 3 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ async function sendTrialEnding(db: Database, now: Date): Promise<number> {
ctaUrl: buildTrackedUrl( ctaUrl: buildTrackedUrl(
"trial-ending", "trial-ending",
r.email, r.email,
webUrl("/dashboard/settings?tab=subscription"), webUrl("/dashboard/subscription"),
), ),
}, },
); );

View File

@@ -123,7 +123,7 @@ export class NovuService {
ctaUrl: buildTrackedUrl( ctaUrl: buildTrackedUrl(
"payment-success", "payment-success",
user.email, user.email,
webUrl("/dashboard/settings?tab=subscription"), webUrl("/dashboard/subscription"),
), ),
}); });
} }
@@ -139,7 +139,7 @@ export class NovuService {
ctaUrl: buildTrackedUrl( ctaUrl: buildTrackedUrl(
"payment-failed", "payment-failed",
user.email, user.email,
webUrl("/dashboard/settings?tab=subscription"), webUrl("/dashboard/subscription"),
), ),
}); });
} }