diff --git a/apps/login/src/lib/service.ts b/apps/login/src/lib/service.ts index d06f850247..9916ee7c36 100644 --- a/apps/login/src/lib/service.ts +++ b/apps/login/src/lib/service.ts @@ -119,10 +119,6 @@ export function constructUrl(request: NextRequest, path: string) { const basePath = process.env.NEXT_PUBLIC_BASE_PATH || ""; return new URL( `${basePath}${path}`, - - // keep this check to allow localhost for local development - forwardedHost?.startsWith("http") - ? forwardedHost - : `${forwardedProto}://${forwardedHost}`, + `${forwardedProto}//${forwardedHost}`, ); }