fix links to named references in log
1 file changed, 2 insertions(+), 2 deletions(-)
changed files
M templates/log.go → templates/log.go
@@ -4,10 +4,10 @@ import ( "fmt" "strings" - "github.com/go-git/go-git/v5/plumbing" "alin.ovh/elgit/git" g "alin.ovh/gomponents" . "alin.ovh/gomponents/html" + "github.com/go-git/go-git/v5/plumbing" ) // LogPage renders the commit log page@@ -36,7 +36,7 @@ g.If( commit.HasReference(), g.Map(commit.References(), func(ref *plumbing.Reference) g.Node { return A( - Href(fmt.Sprintf("/%s/tree/%s", data.Name, ref.Name().Short())), + Href(fmt.Sprintf("/%s/tree/%s/", data.Name, ref.Name().Short())), Class("commit-reference"), g.Text(ref.Name().Short()), )