summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-11 07:41:01 -0700
committerUnknwon <u@gogs.io>2016-08-11 07:41:01 -0700
commitd625e41c6c4d40fadbeaf99dd97e77aa0c9085ae (patch)
tree65b067b5aa95b370c7c37f8785d2015b85ef209d /routers
parenteb1bfe0e596a9fa814d891deeec7283e7838193d (diff)
downloadgitea-d625e41c6c4d40fadbeaf99dd97e77aa0c9085ae.tar.gz
gitea-d625e41c6c4d40fadbeaf99dd97e77aa0c9085ae.zip
#3408 minor code fix
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 3849da25d5..c422b031c6 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -637,7 +637,7 @@ func ViewIssue(ctx *context.Context) {
ctx.Data["NumParticipants"] = len(participants)
ctx.Data["Issue"] = issue
ctx.Data["IsIssueOwner"] = ctx.Repo.IsWriter() || (ctx.IsSigned && issue.IsPoster(ctx.User.ID))
- ctx.Data["SignInLink"] = setting.AppSubUrl + "/user/login"
+ ctx.Data["SignInLink"] = setting.AppSubUrl + "/user/login?redirect_to=" + ctx.Data["Link"].(string)
ctx.Data["RequireHighlightJS"] = true