Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1c5ac8 + dba4290 commit d8fd3d4Copy full SHA for d8fd3d4
client/packages/lowcoder/src/pages/userAuth/authUtils.ts
@@ -78,6 +78,7 @@ export function authRespValidate(
78
onAuthSuccess?: () => void
79
) {
80
let replaceUrl = redirectUrl || BASE_URL;
81
+ const baseUrl = `${window.location.protocol}//${window.location.host}`;
82
if (infoCompleteCheck) {
83
// need complete info
84
replaceUrl = redirectUrl
@@ -86,7 +87,7 @@ export function authRespValidate(
86
87
}
88
if (doValidResponse(resp)) {
89
onAuthSuccess?.();
- history.replace(replaceUrl);
90
+ history.replace(replaceUrl.replace(baseUrl, ''));
91
} else if (
92
resp.data.code === SERVER_ERROR_CODES.EXCEED_MAX_USER_ORG_COUNT ||
93
resp.data.code === SERVER_ERROR_CODES.ALREADY_IN_ORGANIZATION
0 commit comments