web/admin: fix version link to release notes (#6676)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
		| @ -43,7 +43,9 @@ export class VersionStatusCard extends AdminStatusCard<Version> { | |||||||
|  |  | ||||||
|     renderValue(): TemplateResult { |     renderValue(): TemplateResult { | ||||||
|         let text = this.value?.versionCurrent; |         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) { |         if (this.value?.buildHash) { | ||||||
|             text = this.value.buildHash?.substring(0, 7); |             text = this.value.buildHash?.substring(0, 7); | ||||||
|             link = `https://github.com/goauthentik/authentik/commit/${this.value.buildHash}`; |             link = `https://github.com/goauthentik/authentik/commit/${this.value.buildHash}`; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Jens L
					Jens L