Skip to content

Commit

Permalink
Removed redirection on Init - it redirected without keeping the redir…
Browse files Browse the repository at this point in the history
…ectUrl.
  • Loading branch information
milanmajchrak committed Oct 12, 2023
1 parent 664f515 commit 2f1fbd8
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { fadeOut } from '../../../animations/fade';
import { AuthMethodType } from '../../../../core/auth/models/auth.method-type';
import { renderAuthMethodFor } from '../log-in.methods-decorator';
import { AuthMethod } from '../../../../core/auth/models/auth.method';
import { AuthService, LOGIN_ROUTE } from '../../../../core/auth/auth.service';
import { AuthService } from '../../../../core/auth/auth.service';
import { HardRedirectService } from '../../../../core/services/hard-redirect.service';
import { CoreState } from '../../../../core/core-state.model';
import { ActivatedRoute , Router} from '@angular/router';
Expand Down Expand Up @@ -143,9 +143,8 @@ export class LogInPasswordComponent implements OnInit {
// Store the `redirectUrl` value from the url and then remove that value from url.
if (isNotEmpty(this.route.snapshot.queryParams?.redirectUrl)) {
this.redirectUrl = this.route.snapshot.queryParams?.redirectUrl;
void this.router.navigate([LOGIN_ROUTE]);
} else {
// Pop up discojuice login.
// Pop up discojuice login e.g. when the token is expired or the user is trying to download restricted bitstream.
this.popUpDiscoJuiceLogin();
}
}
Expand Down

0 comments on commit 2f1fbd8

Please sign in to comment.