]> source.dussan.org Git - gitea.git/commitdiff
Fix #159
authorUnknown <joe2010xtmf@163.com>
Fri, 2 May 2014 21:30:59 +0000 (17:30 -0400)
committerUnknown <joe2010xtmf@163.com>
Fri, 2 May 2014 21:30:59 +0000 (17:30 -0400)
gogs.go
routers/repo/issue.go

diff --git a/gogs.go b/gogs.go
index a48d0a555579271ea8a06995ed6271ecb931bdbe..d749b06b05dee5fc657faac53c2bff9209f6aee8 100644 (file)
--- a/gogs.go
+++ b/gogs.go
@@ -20,7 +20,7 @@ import (
 // Test that go1.2 tag above is included in builds. main.go refers to this definition.
 const go12tag = true
 
-const APP_VER = "0.3.2.0501 Alpha"
+const APP_VER = "0.3.2.0502 Alpha"
 
 func init() {
        base.AppVer = APP_VER
index 9ab07c0d59a7039d0107baf9d9f0e1b8451174a9..edcc3ea61be149cb03238686dddde58edd0c5132 100644 (file)
@@ -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))
 }