From f38fdfff6e59538612a12c50a3cf1dc077e08bb8 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 2 Aug 2023 11:17:09 +0200 Subject: [PATCH] website: fix broken links in NewsBar Signed-off-by: Jens Langhammer --- website/src/components/NewsBar/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/src/components/NewsBar/index.tsx b/website/src/components/NewsBar/index.tsx index 9aa4efd1a..374f6def9 100644 --- a/website/src/components/NewsBar/index.tsx +++ b/website/src/components/NewsBar/index.tsx @@ -19,9 +19,10 @@ export function getReleases(): ItemLink[] { ); const releaseVersion: ItemLink[] = releaseItems.map((relUrl: string) => { const [_, year, version] = relUrl.split("/"); + const url = useBaseUrl(`docs/releases/${version.replace("v", "")}`); return { label: `authentik ${version} released!`, - link: relUrl, + link: url, }; }); return releaseVersion; @@ -34,7 +35,7 @@ export function NewsBar() {
{getReleases().map((version) => { return ( - + {version.label} );