Skip to content

Commit

Permalink
fix tag links
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Sep 20, 2024
1 parent d78b817 commit 048c169
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/layouts/MarkdownLayout.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
import { URLS } from '../statics';
import Layout from './BaseLayout.astro';
export interface Heading {
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/statics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 048c169

Please sign in to comment.