diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-13 20:33:03 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-13 20:33:03 +0100 |
| commit | f19fc78a151c761642cf7c9b654e0da9db3c4418 (patch) | |
| tree | 4fb1c40c51151572ebd2c283e5ae8a6e819b83f1 /src/components/LallansIssue.astro | |
| parent | f6d45f7b9374444ae1ab751a213d86827b64eb8f (diff) | |
More robust relative path handling
Diffstat (limited to 'src/components/LallansIssue.astro')
| -rw-r--r-- | src/components/LallansIssue.astro | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/LallansIssue.astro b/src/components/LallansIssue.astro index c71755b..a07d345 100644 --- a/src/components/LallansIssue.astro +++ b/src/components/LallansIssue.astro @@ -1,6 +1,7 @@ --- import translate from '$i18n/translate'; import tSite from '$i18n/translations/site'; +import relativePath from '$lib/relativePath'; import type LallansIssue from '$types/LallansIssue'; import type Locale from '$types/Locale'; import LallansIssueContributions from './LallansIssueContributions.astro'; @@ -25,7 +26,9 @@ const t = translate(locale); <div class="product__action-block"> <img alt="" src={`/images/lallans/issue${issue.issueNumber}.jpg`} /> - <PayPalButtons successPageUrl={`./${issue.issueNumber}/payment-success-confirmation`} /> + <PayPalButtons + successPageUrl={relativePath(Astro.url.pathname, `payment-success-confirmation`)} + /> </div> </div> </section> |
