Merge pull request #1216 from Bugagazavr/redirect-fixes

Fixes gitlab redirects
This commit is contained in:
Brad Rydzewski 2015-09-28 23:23:39 -07:00
commit 9ebafc0a07

View file

@ -35,7 +35,7 @@ func RedirectSha(c *gin.Context) {
return
}
c.Redirect(301, fmt.Sprintf("/%s/%s/%d", repo.Owner, repo.Name, build.ID))
c.Redirect(301, fmt.Sprintf("/%s/%s/%d", repo.Owner, repo.Name, build.Number))
return
}
@ -63,7 +63,7 @@ func RedirectPullRequest(c *gin.Context) {
return
}
c.Redirect(301, fmt.Sprintf("/%s/%s/%d", repo.Owner, repo.Name, build.ID))
c.Redirect(301, fmt.Sprintf("/%s/%s/%d", repo.Owner, repo.Name, build.Number))
return
}