web/admin: fix version link to release notes (#6676)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
ce0e1c1ef9
commit
e1a49e1f4e
|
@ -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}`;
|
||||
|
|
Reference in New Issue