mirror of
https://github.com/grafana/grafana.git
synced 2025-01-29 01:35:03 -06:00
Login: Fixes undefined redirect (#18545)
This commit is contained in:
parent
63f47fd8e2
commit
3392471bb2
@ -102,22 +102,10 @@ export class LoginCtrl extends PureComponent<Props, State> {
|
||||
// Use window.location.href to force page reload
|
||||
if (params.redirect && params.redirect[0] === '/') {
|
||||
window.location.href = config.appSubUrl + params.redirect;
|
||||
|
||||
// this.props.updateLocation({
|
||||
// path: config.appSubUrl + params.redirect,
|
||||
// });
|
||||
} else if (this.result.redirectUrl) {
|
||||
window.location.href = config.appSubUrl + params.redirect;
|
||||
|
||||
// this.props.updateLocation({
|
||||
// path: this.result.redirectUrl,
|
||||
// });
|
||||
window.location.href = config.appSubUrl + this.result.redirectUrl;
|
||||
} else {
|
||||
window.location.href = config.appSubUrl + '/';
|
||||
|
||||
// this.props.updateLocation({
|
||||
// path: '/',
|
||||
// });
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user