Skip to content

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

fix(web): avoid duplicated basePath in Change Password link ; fixes #13736 (#13738)

Zino699e82b9fb1c
diff --git a/web/src/pages/account/settings/index.tsx b/web/src/pages/account/settings/index.tsx
index 52edb1f4a7..0f2668ee11 100644
--- a/web/src/pages/account/settings/index.tsx
+++ b/web/src/pages/account/settings/index.tsx
@@ -32,7 +32,6 @@ import { StringNoHTML } from "@langfuse/shared";
import Link from "next/link";
import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";
import { showErrorToast } from "@/src/features/notifications/showErrorToast";
-import { env } from "@/src/env.mjs";
const displayNameSchema = z.object({
name: StringNoHTML.min(1, "Name cannot be empty").max(
@@ -287,11 +286,7 @@ const getAccountSettingsPages = (userEmail: string): AccountSettingsPage[] => [
process.
</p>
<Button asChild variant="secondary">
- <Link
- href={`${env.NEXT_PUBLIC_BASE_PATH ?? ""}/auth/reset-password`}
- >
- Change Password
- </Link>
+ <Link href="/auth/reset-password">Change Password</Link>
</Button>
</Card>
</div>