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 a00e473 commit 210dc90Copy full SHA for 210dc90
routers/web/repo/issue.go
@@ -1150,8 +1150,8 @@ func NewIssuePost(ctx *context.Context) {
1150
}
1151
1152
log.Trace("Issue created: %d/%d", repo.ID, issue.ID)
1153
- if ctx.FormString("redirect_after_creation") == "project" {
1154
- 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))
1155
} else {
1156
ctx.Redirect(issue.Link())
1157
0 commit comments