summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/issue.go3
-rw-r--r--routers/repo/repo.go8
2 files changed, 9 insertions, 2 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 6e88f19eab..6856824b48 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -41,7 +41,8 @@ var (
)
func Issues(ctx *middleware.Context) {
- ctx.Data["Title"] = "Issues"
+ ctx.Data["Title"] = ctx.Tr("repo.issues")
+ ctx.Data["PageIsIssueList"] = true
ctx.Data["IsRepoToolbarIssues"] = true
ctx.Data["IsRepoToolbarIssuesList"] = true
diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index cd231ccd62..605071d110 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -374,7 +374,13 @@ func Action(ctx *middleware.Context) {
})
return
}
- ctx.Redirect(ctx.Repo.RepoLink)
+
+ redirectTo := ctx.Query("redirect_to")
+ if len(redirectTo) == 0 {
+ redirectTo = ctx.Repo.RepoLink
+ }
+ ctx.Redirect(redirectTo)
+
return
ctx.JSON(200, map[string]interface{}{
"ok": true,