Browse Source

Login: Fixes undefined redirect (#18545)

Tobias Skarhed 6 years ago
parent
commit
3392471bb2
1 changed files with 1 additions and 13 deletions
  1. 1 13
      public/app/core/components/Login/LoginCtrl.tsx

+ 1 - 13
public/app/core/components/Login/LoginCtrl.tsx

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