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

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}`;