From 402072540f6ff902c112537dd3c3aa73818a2f0f Mon Sep 17 00:00:00 2001 From: StarFleetCPTN Date: Wed, 19 Mar 2025 05:18:24 -0700 Subject: [PATCH] Fix GetReleaseURL to dynamically use AppVersion in the release URL format --- components/layout.templ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/layout.templ b/components/layout.templ index a52b4d9..5b33a6a 100644 --- a/components/layout.templ +++ b/components/layout.templ @@ -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