summaryrefslogtreecommitdiff
path: root/src/components/Scotsoun.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Scotsoun.astro')
-rw-r--r--src/components/Scotsoun.astro5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/Scotsoun.astro b/src/components/Scotsoun.astro
index 13c6fa9..1491ebc 100644
--- a/src/components/Scotsoun.astro
+++ b/src/components/Scotsoun.astro
@@ -5,6 +5,7 @@ import tComponent from '$i18n/translations/components/scotsoun';
import type Locale from '$types/Locale';
import type Scotsoun from '$types/Scotsoun';
import PayPalButtons from './PayPalButtons.astro';
+import relativePath from '$lib/relativePath';
interface Props {
locale: Locale;
@@ -30,7 +31,9 @@ const t = translate(locale);
</header>
<div class="product__action-block">
<img src={`/images/scotsoun/sscd${scotsoun.scotsounId}.jpg`} />
- <PayPalButtons successPageUrl={`./${scotsoun.scotsounId}/payment-success-confirmation`} />
+ <PayPalButtons
+ successPageUrl={relativePath(Astro.url.pathname, `payment-success-confirmation`)}
+ />
</div>
</div>