From 34fe1742cf2600abfc5e660912c3469eb037c3dc Mon Sep 17 00:00:00 2001 From: Roman Vynar Date: Wed, 4 Jul 2018 16:35:50 +0300 Subject: [PATCH] Show last events for repos containing / --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 06e04b5..3c87bfe 100644 --- a/main.go +++ b/main.go @@ -124,7 +124,6 @@ func main() { }) view.AddGlobal("url_encoded_path", func(m interface{}) string { return url.PathEscape(m.(string)) - }) view.AddGlobal("url_decoded_path", func(m interface{}) string { res, err := url.PathUnescape(m.(string)) @@ -207,6 +206,7 @@ func (a *apiClient) viewTags(c echo.Context) error { data.Set("repo", repo) data.Set("tags", tags) data.Set("deleteAllowed", deleteAllowed) + repoPath, _ = url.PathUnescape(repoPath) data.Set("events", a.eventListener.GetEvents(repoPath)) return c.Render(http.StatusOK, "tags.html", data)