Fix GetReleaseURL to dynamically use AppVersion in the release URL format

This commit is contained in:
StarFleetCPTN
2025-03-19 05:18:24 -07:00
parent be19a5efde
commit 402072540f
+1 -1
View File
@@ -14,7 +14,7 @@ var AppVersion = "dev"
// GetReleaseURL returns the URL to the specific GitHub release
func GetReleaseURL() templ.SafeURL {
return templ.SafeURL(fmt.Sprintf("https://github.com/starfleetcptn/gomft/releases/tag/v%s", AppVersion))
return templ.SafeURL(fmt.Sprintf("https://github.com/starfleetcptn/gomft/releases/tag/%s", AppVersion))
}
// CreateTemplateContext creates a new context with user information from Gin's context