From 5cd689af0ab911e50b2894280cd9d31b978ffc72 Mon Sep 17 00:00:00 2001 From: poduck Date: Mon, 1 Dec 2025 02:20:03 -0500 Subject: [PATCH] fix(auth): Remove hash from email verification URL to support BrowserRouter The email verification link was incorrectly including a hash fragment (/#/), which caused the React Router (using BrowserRouter) to misinterpret the path as the root path, leading to a redirect to the default 'email-verification-required' page instead of the 'verify-email' page. This commit removes the hash, ensuring the link correctly points to /verify-email. --- smoothschedule/smoothschedule/users/api_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smoothschedule/smoothschedule/users/api_views.py b/smoothschedule/smoothschedule/users/api_views.py index e3c2c1e..cd7cdd3 100644 --- a/smoothschedule/smoothschedule/users/api_views.py +++ b/smoothschedule/smoothschedule/users/api_views.py @@ -201,7 +201,7 @@ def send_verification_email(request): if primary_domain: subdomain = primary_domain.domain.split('.')[0] + '.' - verify_url = f"http://{subdomain}lvh.me{port}/#/verify-email?token={token.token}" + verify_url = f"http://{subdomain}lvh.me{port}/verify-email?token={token.token}" # Send email (goes to console in development) subject = "Verify your email - Smooth Schedule"