From a221b2807f0eb46e7ff4fe323af10e9e8c6c18a7 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 30 Sep 2018 13:55:40 -0400 Subject: routes/repo/issue: fix redirect with unexpected escape (#5443) --- routes/repo/issue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routes/repo/issue.go') diff --git a/routes/repo/issue.go b/routes/repo/issue.go index 850520e3..67071a44 100644 --- a/routes/repo/issue.go +++ b/routes/repo/issue.go @@ -901,7 +901,7 @@ func NewComment(c *context.Context, f form.CreateComment) { typeName = "pulls" } if comment != nil { - c.Redirect(fmt.Sprintf("%s/%s/%d#%s", c.Repo.RepoLink, typeName, issue.Index, comment.HashTag())) + c.RawRedirect(fmt.Sprintf("%s/%s/%d#%s", c.Repo.RepoLink, typeName, issue.Index, comment.HashTag())) } else { c.Redirect(fmt.Sprintf("%s/%s/%d", c.Repo.RepoLink, typeName, issue.Index)) } -- cgit v1.2.3