diff options
| author | Fuwn <[email protected]> | 2026-02-08 07:07:59 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-08 07:07:59 -0800 |
| commit | a33dbfa6a1cb1d34ce9a5286efdb25818ff7b6c1 (patch) | |
| tree | 7d44bdcb94cc1b69fbc201a4757f27f3751c5adb /apps/web/app/(auth)/forgot-password | |
| parent | chore: gate Vercel analytics and speed insights to production only (diff) | |
| download | asa.news-a33dbfa6a1cb1d34ce9a5286efdb25818ff7b6c1.tar.xz asa.news-a33dbfa6a1cb1d34ce9a5286efdb25818ff7b6c1.zip | |
feat: share with highlighted excerpt and fix auth redirect URLs
Add "share" button to text selection toolbar so users can share an entry
with a highlighted passage visible to visitors. The public share page
renders the highlight and scrolls to it on load.
Also fix magic link and password reset redirects to use NEXT_PUBLIC_APP_URL
instead of window.location.origin so emails link to the production domain.
Diffstat (limited to 'apps/web/app/(auth)/forgot-password')
| -rw-r--r-- | apps/web/app/(auth)/forgot-password/page.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/web/app/(auth)/forgot-password/page.tsx b/apps/web/app/(auth)/forgot-password/page.tsx index 748ba47..ad302bc 100644 --- a/apps/web/app/(auth)/forgot-password/page.tsx +++ b/apps/web/app/(auth)/forgot-password/page.tsx @@ -20,7 +20,7 @@ export default function ForgotPasswordPage() { const { error } = await supabaseClient.auth.resetPasswordForEmail( emailAddress, { - redirectTo: `${window.location.origin}/auth/callback?next=/reset-password`, + redirectTo: `${process.env.NEXT_PUBLIC_APP_URL || window.location.origin}/auth/callback?next=/reset-password`, }, ) |