web/admin: fix version link to release notes (#6676)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L 2023-08-30 00:07:48 +02:00 committed by GitHub
parent ce0e1c1ef9
commit e1a49e1f4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@ export class VersionStatusCard extends AdminStatusCard<Version> {
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}`;