3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-15 18:13:32 -06:00

Login: Fixes undefined redirect ()

This commit is contained in:
Tobias Skarhed 2019-08-14 13:41:09 +02:00 committed by kay delaney
parent 63f47fd8e2
commit 3392471bb2

View File

@ -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: '/',
// });
}
};