From 048c16979210f6fdb2fe0bf78864df3875f471ab Mon Sep 17 00:00:00 2001 From: Kevin F Date: Fri, 20 Sep 2024 17:10:19 +0200 Subject: [PATCH] fix tag links --- src/layouts/MarkdownLayout.astro | 3 ++- src/statics.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/layouts/MarkdownLayout.astro b/src/layouts/MarkdownLayout.astro index cddc26f..729515e 100644 --- a/src/layouts/MarkdownLayout.astro +++ b/src/layouts/MarkdownLayout.astro @@ -1,4 +1,5 @@ --- +import { URLS } from '../statics'; import Layout from './BaseLayout.astro'; export interface Heading { @@ -40,7 +41,7 @@ function buildNestedHeadings(headings: Heading[]): NestedHeading[] { const { frontmatter, headings } = Astro.props; function createTagLink(tag: string) { - return `/arc-website/details/tags/${tag}`; + return URLS.INTERNAL_TAGS + `/${tag}`; } // Generate the nested headings structure diff --git a/src/statics.ts b/src/statics.ts index 8b60d78..176a649 100644 --- a/src/statics.ts +++ b/src/statics.ts @@ -7,6 +7,7 @@ export enum URLS { INTERNAL_TOOLS = BASE_PATH + "details/tools-and-services", INTERNAL_PARTNERS = BASE_PATH + "details/partners", INTERNAL_DICTIONARY = BASE_PATH + "dictionary", + INTERNAL_TAGS = BASE_PATH + "details/tags", INTERNAL_COM_DATA_MANAGEMENT = BASE_PATH + "details/data-management-principle", INTERNAL_COM_TOOLS = BASE_PATH + "details/tools-and-services",