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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user