Merge pull request #46 from StarFleetCPTN/development

Fix GetReleaseURL to dynamically use AppVersion in the release URL fo…
This commit is contained in:
StarFleetCPTN
2025-03-19 05:19:11 -07:00
committed by GitHub
+1 -1
View File
@@ -14,7 +14,7 @@ var AppVersion = "dev"
// GetReleaseURL returns the URL to the specific GitHub release // GetReleaseURL returns the URL to the specific GitHub release
func GetReleaseURL() templ.SafeURL { 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 // CreateTemplateContext creates a new context with user information from Gin's context