|
|
@@ -49,6 +49,9 @@ const Model: LoginModelType = {
|
|
|
const redirectUrlParams = new URL(redirect);
|
|
|
if (redirectUrlParams.origin === urlParams.origin) {
|
|
|
redirect = redirect.substr(urlParams.origin.length);
|
|
|
+ if (window.routerBase !== '/') {
|
|
|
+ redirect = redirect.replace(window.routerBase, '/');
|
|
|
+ }
|
|
|
if (redirect.match(/^\/.*#/)) {
|
|
|
redirect = redirect.substr(redirect.indexOf('#') + 1);
|
|
|
}
|