From e1a49e1f4edab7c4dc595c79ae947fb18456d60d Mon Sep 17 00:00:00 2001 From: Jens L Date: Wed, 30 Aug 2023 00:07:48 +0200 Subject: [PATCH] web/admin: fix version link to release notes (#6676) Signed-off-by: Jens Langhammer --- web/src/admin/admin-overview/cards/VersionStatusCard.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/admin/admin-overview/cards/VersionStatusCard.ts b/web/src/admin/admin-overview/cards/VersionStatusCard.ts index 77b075467..01689aede 100644 --- a/web/src/admin/admin-overview/cards/VersionStatusCard.ts +++ b/web/src/admin/admin-overview/cards/VersionStatusCard.ts @@ -43,7 +43,9 @@ export class VersionStatusCard extends AdminStatusCard { renderValue(): TemplateResult { let text = this.value?.versionCurrent; - let link = `https://goauthentik.io/docs/releases/${this.value?.versionCurrent}`; + const versionFamily = this.value?.versionCurrent.split("."); + versionFamily?.pop(); + let link = `https://goauthentik.io/docs/releases/${versionFamily?.join(".")}`; if (this.value?.buildHash) { text = this.value.buildHash?.substring(0, 7); link = `https://github.com/goauthentik/authentik/commit/${this.value.buildHash}`;