Skip to content

Commit 86984d6

Browse files
Merge pull request #441 from communitybridge/bug/gerrit-redirect
Added gerrit redirect
2 parents d9a4b4c + 2dafd89 commit 86984d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/modules/individual-contributor/container/individual-dashboard/individual-dashboard.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,12 @@ export class IndividualDashboardComponent implements OnInit {
6464
}
6565

6666
postIndivdualRequestSignature() {
67+
const redirectUrl = JSON.parse(this.storageService.getItem(AppSettings.REDIRECT));
6768
const data = {
6869
project_id: this.projectId,
6970
user_id: this.userId,
7071
return_url_type: this.hasGerrit ? AppSettings.GERRIT :this.claContributorService.getTypeByUrl(),
71-
return_url: this.hasGerrit ? '' : this.activeSignatureModel.return_url
72+
return_url: this.hasGerrit ? (redirectUrl || '') : this.activeSignatureModel.return_url
7273
};
7374
this.claContributorService.postIndividualSignatureRequest(data).subscribe(
7475
(response) => {

0 commit comments

Comments
 (0)