summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-02 17:30:59 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-02 17:30:59 -0400
commita9e6d49dc6f7070538ac24de2134b3dcba8d9e87 (patch)
tree62cf092e4e66b2819b5a52f4c699f32fae88766a /routers
parent3e856928a2254c6409bf9370c88731fce8efc974 (diff)
downloadgitea-a9e6d49dc6f7070538ac24de2134b3dcba8d9e87.tar.gz
gitea-a9e6d49dc6f7070538ac24de2134b3dcba8d9e87.zip
Fix #159
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/issue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 9ab07c0d59..edcc3ea61b 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -294,5 +294,5 @@ func Comment(ctx *middleware.Context, params martini.Params) {
}
}
- ctx.Redirect(fmt.Sprintf("/%s/%s/issues/%d", ctx.User.Name, ctx.Repo.Repository.Name, index))
+ ctx.Redirect(fmt.Sprintf("%s/issues/%d", ctx.Repo.RepoLink, index))
}