mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 20:31:10 +00:00
Fixes gitlab redirects
This commit is contained in:
parent
886c0f2353
commit
cc77e2563f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue