diff --git a/src/webpage/login.ts b/src/webpage/login.ts index 63f7a17..c0d3752 100644 --- a/src/webpage/login.ts +++ b/src/webpage/login.ts @@ -287,7 +287,7 @@ async function getapiurls(str: string): Promise< }/policies/instance/domains` ).then(x=>x.json()); return{ - api: info.apiEndpoint, + api: info.apiEndpoint+(url.pathname.includes("api") ? "" : "/api"), gateway: info.gateway, cdn: info.cdn, wellknown: str,