summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/LallansIssue.astro5
-rw-r--r--src/components/LallansIssuesGallery.astro12
-rw-r--r--src/components/Scotsoun.astro5
-rw-r--r--src/components/ScotsounCdGallery.astro12
4 files changed, 30 insertions, 4 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>
diff --git a/src/components/LallansIssuesGallery.astro b/src/components/LallansIssuesGallery.astro
index bee50c8..c784156 100644
--- a/src/components/LallansIssuesGallery.astro
+++ b/src/components/LallansIssuesGallery.astro
@@ -1,5 +1,12 @@
---
import { getAllLallansIssues } from '$data/lallans';
+import type Locale from '$types/Locale';
+
+interface Props {
+ locale: Locale;
+}
+
+const { locale } = Astro.props;
const issues = await getAllLallansIssues();
---
@@ -8,7 +15,10 @@ const issues = await getAllLallansIssues();
{
issues.map((issue) => (
<li>
- <a class="link link-gallery__container" href={`lallans/${issue.issueNumber}`}>
+ <a
+ class="link link-gallery__container"
+ href={`/${locale}/furthsettins/lallans/${issue.issueNumber}`}
+ >
<div class="link-gallery__image">
<img src={`/images/lallans/issue${issue.issueNumber}.jpg`} />
</div>
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>
diff --git a/src/components/ScotsounCdGallery.astro b/src/components/ScotsounCdGallery.astro
index 12bafb0..6f6c794 100644
--- a/src/components/ScotsounCdGallery.astro
+++ b/src/components/ScotsounCdGallery.astro
@@ -1,5 +1,12 @@
---
import { getAllScotsoun } from '$data/scotsoun';
+import type Locale from '$types/Locale';
+
+interface Props {
+ locale: Locale;
+}
+
+const { locale } = Astro.props;
const scotsoun = await getAllScotsoun();
---
@@ -8,7 +15,10 @@ const scotsoun = await getAllScotsoun();
{
scotsoun.map((scotsounItem) => (
<li>
- <a class="link link-gallery__container" href={`scotsoun/${scotsounItem.scotsounId}`}>
+ <a
+ class="link link-gallery__container"
+ href={`/${locale}/furthsettins/scotsoun/${scotsounItem.scotsounId}`}
+ >
<div class="link-gallery__image">
<img src={`/images/scotsoun/sscd${scotsounItem.scotsounId}.jpg`} />
</div>