Skip to content

Commit

Permalink
Merge pull request #441 from communitybridge/bug/gerrit-redirect
Browse files Browse the repository at this point in the history
Added gerrit redirect
  • Loading branch information
amolsontakke3576 authored Jan 8, 2025
2 parents d9a4b4c + 2dafd89 commit 86984d6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ export class IndividualDashboardComponent implements OnInit {
}

postIndivdualRequestSignature() {
const redirectUrl = JSON.parse(this.storageService.getItem(AppSettings.REDIRECT));
const data = {
project_id: this.projectId,
user_id: this.userId,
return_url_type: this.hasGerrit ? AppSettings.GERRIT :this.claContributorService.getTypeByUrl(),
return_url: this.hasGerrit ? '' : this.activeSignatureModel.return_url
return_url: this.hasGerrit ? (redirectUrl || '') : this.activeSignatureModel.return_url
};
this.claContributorService.postIndividualSignatureRequest(data).subscribe(
(response) => {
Expand Down

0 comments on commit 86984d6

Please sign in to comment.