Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(auth): honor NEXT_PUBLIC_BASE_PATH in password reset verification (#8385)

Marc Klingen5b10110dfe3e
diff --git a/web/src/features/auth-credentials/components/ResetPasswordButton.tsx b/web/src/features/auth-credentials/components/ResetPasswordButton.tsx
index 16cdb49cf3..60600a35f9 100644
--- a/web/src/features/auth-credentials/components/ResetPasswordButton.tsx
+++ b/web/src/features/auth-credentials/components/ResetPasswordButton.tsx
@@ -66,7 +66,7 @@ export function RequestResetPasswordEmailButton({
const callback = encodeURIComponent(
`${env.NEXT_PUBLIC_BASE_PATH ?? ""}/auth/reset-password`,
);
- const url = `/api/auth/callback/email?email=${formattedEmail}&token=${formattedCode}&callbackUrl=${callback}`;
+ const url = `${env.NEXT_PUBLIC_BASE_PATH ?? ""}/api/auth/callback/email?email=${formattedEmail}&token=${formattedCode}&callbackUrl=${callback}`;
window.location.href = url;
} catch (error) {
console.error("Error verifying code:", error);