We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f00979 commit b918a2cCopy full SHA for b918a2c
routers/web/repo/issue.go
@@ -1154,8 +1154,8 @@ func NewIssuePost(ctx *context.Context) {
1154
}
1155
1156
log.Trace("Issue created: %d/%d", repo.ID, issue.ID)
1157
- if ctx.FormString("redirect_after_creation") == "project" {
1158
- ctx.Redirect(ctx.Repo.RepoLink + "/projects/" + strconv.FormatInt(form.ProjectID, 10))
+ if ctx.FormString("redirect_after_creation") == "project" && projectID > 0 {
+ ctx.Redirect(ctx.Repo.RepoLink + "/projects/" + strconv.FormatInt(projectID, 10))
1159
} else {
1160
ctx.Redirect(issue.Link())
1161
0 commit comments