Skip to content

Commit

Permalink
Merge pull request #1826 from thebiggive/DON-998-links-fix
Browse files Browse the repository at this point in the history
DON-998 – fix unexpectedly-relative links
  • Loading branch information
NoelLH authored Jan 15, 2025
2 parents ede2014 + d9b7279 commit dbf7283
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/my-donations/my-donations.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ <h3>{{ donation.charityName }}</h3>
</div>
@if (donation.mandate) {
<div class="mandate">
<a href="{{myRegularGivingPath + '/' + donation.mandate.uuid}}">See Mandate</a>
<a href="{{'/' + myRegularGivingPath + '/' + donation.mandate.uuid}}">See Mandate</a>
</div>
}
</biggive-container-card>
Expand Down
4 changes: 2 additions & 2 deletions src/app/regular-giving/regular-giving.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ export class RegularGivingComponent implements OnInit, AfterViewInit {
stripeConfirmationTokenId: confirmationToken?.id
}).subscribe({
next: async (mandate: Mandate) => {
await this.router.navigateByUrl(`${myRegularGivingPath}/${mandate.id}`);
},
await this.router.navigateByUrl(`/${myRegularGivingPath}/${mandate.id}`);
},
error: (error: {error: {error: {description?: string} }}) => {
const message = error.error.error.description ?? 'Sorry, something went wrong';

Expand Down

0 comments on commit dbf7283

Please sign in to comment.