From 8f21e655b043535c79cd7660397d3e732724bf95 Mon Sep 17 00:00:00 2001 From: puni9869 Date: Wed, 12 Jul 2023 12:30:19 +0530 Subject: [PATCH] Fix: when branch name contains # its throwing 404 from UI. Its due to double encoding done in template and go template code. --- templates/repo/code/recently_pushed_new_branches.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/code/recently_pushed_new_branches.tmpl b/templates/repo/code/recently_pushed_new_branches.tmpl index e936fa4bb462b..1cade39d81487 100644 --- a/templates/repo/code/recently_pushed_new_branches.tmpl +++ b/templates/repo/code/recently_pushed_new_branches.tmpl @@ -2,9 +2,9 @@
{{$timeSince := TimeSince .UpdatedUnix.AsTime $.locale}} - {{$.locale.Tr "repo.pulls.recently_pushed_new_branches" (PathEscapeSegments .Name) $timeSince | Safe}} + {{$.locale.Tr "repo.pulls.recently_pushed_new_branches" .Name $timeSince | Safe}}
- + {{$.locale.Tr "repo.pulls.compare_changes"}}