Commit 3392471b by Tobias Skarhed Committed by kay delaney

Login: Fixes undefined redirect (#18545)

parent 63f47fd8
...@@ -102,22 +102,10 @@ export class LoginCtrl extends PureComponent<Props, State> { ...@@ -102,22 +102,10 @@ export class LoginCtrl extends PureComponent<Props, State> {
// Use window.location.href to force page reload // Use window.location.href to force page reload
if (params.redirect && params.redirect[0] === '/') { if (params.redirect && params.redirect[0] === '/') {
window.location.href = config.appSubUrl + params.redirect; window.location.href = config.appSubUrl + params.redirect;
// this.props.updateLocation({
// path: config.appSubUrl + params.redirect,
// });
} else if (this.result.redirectUrl) { } else if (this.result.redirectUrl) {
window.location.href = config.appSubUrl + params.redirect; window.location.href = config.appSubUrl + this.result.redirectUrl;
// this.props.updateLocation({
// path: this.result.redirectUrl,
// });
} else { } else {
window.location.href = config.appSubUrl + '/'; window.location.href = config.appSubUrl + '/';
// this.props.updateLocation({
// path: '/',
// });
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment