Skip to content

Commit

Permalink
fix: encode returnURL before adding to query param
Browse files Browse the repository at this point in the history
  • Loading branch information
omkar-ethz committed Feb 25, 2025
1 parent 002a5a6 commit 5d7912c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/_layout/app-header/app-header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class AppHeaderComponent implements OnInit {

login(): void {
if (this.config.skipSciCatLoginPageEnabled) {
const returnURL = this.router.url;
const returnURL = encodeURIComponent(this.router.url);
for (const endpoint of this.oAuth2Endpoints) {
this.document.location.href = `${this.config.lbBaseURL}/${endpoint.authURL}?returnURL=${returnURL}`;
}
Expand Down

0 comments on commit 5d7912c

Please sign in to comment.