diff --git a/client/packages/lowcoder-sdk/package.json b/client/packages/lowcoder-sdk/package.json index 1c5f39d03..051c06a3c 100644 --- a/client/packages/lowcoder-sdk/package.json +++ b/client/packages/lowcoder-sdk/package.json @@ -1,6 +1,6 @@ { "name": "lowcoder-sdk", - "version": "2.1.7", + "version": "2.1.8", "type": "module", "files": [ "src", diff --git a/client/packages/lowcoder/src/pages/userAuth/authUtils.ts b/client/packages/lowcoder/src/pages/userAuth/authUtils.ts index 9a05802df..36363b778 100644 --- a/client/packages/lowcoder/src/pages/userAuth/authUtils.ts +++ b/client/packages/lowcoder/src/pages/userAuth/authUtils.ts @@ -78,6 +78,7 @@ export function authRespValidate( onAuthSuccess?: () => void ) { let replaceUrl = redirectUrl || BASE_URL; + const baseUrl = `${window.location.protocol}//${window.location.host}`; if (infoCompleteCheck) { // need complete info replaceUrl = redirectUrl @@ -86,7 +87,7 @@ export function authRespValidate( } if (doValidResponse(resp)) { onAuthSuccess?.(); - history.replace(replaceUrl); + history.replace(replaceUrl.replace(baseUrl, '')); } else if ( resp.data.code === SERVER_ERROR_CODES.EXCEED_MAX_USER_ORG_COUNT || resp.data.code === SERVER_ERROR_CODES.ALREADY_IN_ORGANIZATION