UI: issues - finish basic frame

This commit is contained in:
Unknwon 2015-07-24 04:50:05 +08:00
parent 548b95f7b5
commit 4447a20f87
38 changed files with 515 additions and 239 deletions

View file

@ -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,