aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/thematique
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/thematique')
-rw-r--r--src/pages/thematique/[slug].tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/pages/thematique/[slug].tsx b/src/pages/thematique/[slug].tsx
index 84ab134..0519731 100644
--- a/src/pages/thematique/[slug].tsx
+++ b/src/pages/thematique/[slug].tsx
@@ -118,13 +118,13 @@ const ThematicPage: NextPageWithLayout<ThematicPageProps> = ({
? [
<LinksListWidget
key="thematics"
- items={getLinksListItems(thematics, 'thematic')}
+ items={getLinksListItems(thematics)}
title={thematicsListTitle}
level={2}
/>,
<LinksListWidget
key="related-topics"
- items={getLinksListItems(topics, 'topic')}
+ items={getLinksListItems(topics)}
title={topicsListTitle}
level={2}
/>,
@@ -178,10 +178,11 @@ export const getStaticProps: GetStaticProps<ThematicPageProps> = async ({
first: totalThematics,
});
const allThematics = allThematicsEdges.edges.map((edge) =>
- getPageLinkFromRawData(edge.node)
+ getPageLinkFromRawData(edge.node, 'thematic')
);
const allThematicsLinks = allThematics.filter(
- (thematic) => thematic.slug !== (params!.slug as ThematicParams['slug'])
+ (thematic) =>
+ thematic.url !== `/thematique/${params!.slug as ThematicParams['slug']}`
);
const translation = await loadTranslation(locale);