Skip to content

Commit 824c027

Browse files
authored
fix(ui): signin callback redirect only on other pages (#5814)
1 parent d993fac commit 824c027

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/src/app/views/auth/callback/callback.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ export class CallbackComponent implements OnInit, OnDestroy {
115115
this._cd.markForCheck();
116116
}))
117117
.subscribe(_ => {
118-
if (this.payloadData && this.payloadData.redirect_uri) {
118+
if (this.payloadData && this.payloadData.redirect_uri &&
119+
!(this.payloadData.redirect_uri as string).startsWith('/auth/callback/')) {
119120
let dus = new DefaultUrlSerializer();
120121
this._router.navigateByUrl(dus.parse(this.payloadData.redirect_uri));
121122
} else {

0 commit comments

Comments
 (0)