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.
This commit is contained in:
poduck
2025-12-01 02:20:03 -05:00
parent b3e2c1f324
commit 5cd689af0a

View File

@@ -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"