Skip to content

Commit

Permalink
fix(ui): signin callback redirect only on other pages (#5814)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlt authored May 18, 2021
1 parent d993fac commit 824c027
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/app/views/auth/callback/callback.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ export class CallbackComponent implements OnInit, OnDestroy {
this._cd.markForCheck();
}))
.subscribe(_ => {
if (this.payloadData && this.payloadData.redirect_uri) {
if (this.payloadData && this.payloadData.redirect_uri &&
!(this.payloadData.redirect_uri as string).startsWith('/auth/callback/')) {
let dus = new DefaultUrlSerializer();
this._router.navigateByUrl(dus.parse(this.payloadData.redirect_uri));
} else {
Expand Down

0 comments on commit 824c027

Please sign in to comment.