Fix branch links on the repository page

Thanks to Tobias for reporting.
This commit is contained in:
Christopher Baines 2022-05-20 12:18:58 +01:00
parent 198b6ef719
commit 89545caa3f

View file

@ -373,12 +373,14 @@
((name commit date revision-exists? job-events) ((name commit date revision-exists? job-events)
`(tr `(tr
(td (td
(a (@ (href ,(encode-and-join-uri-path (a (@ (href ,(string-append
"/"
(encode-and-join-uri-path
(list (list
"repository" "repository"
(number->string git-repository-id) (number->string git-repository-id)
"branch" "branch"
name)))) name)))))
,name)) ,name))
(td ,date) (td ,date)
(td ,@(if (string=? commit "") (td ,@(if (string=? commit "")