mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 22:15:51 +01:00
Remove superfluous context.path
It was generating URLs that look like http://server.example.com/gitbucket/gitbucket/git/user/repo.git (notice the extra "/gitbucket"?) when the WAR was deployed in Tomcat.
This commit is contained in:
@@ -98,7 +98,7 @@ trait PullRequestsControllerBase extends ControllerBase {
|
||||
pulls.html.mergeguide(
|
||||
checkConflictInPullRequest(owner, name, pullreq.branch, pullreq.requestUserName, name, pullreq.requestBranch, issueId),
|
||||
pullreq,
|
||||
s"${baseUrl}${context.path}/git/${pullreq.requestUserName}/${pullreq.requestRepositoryName}.git")
|
||||
s"${baseUrl}/git/${pullreq.requestUserName}/${pullreq.requestRepositoryName}.git")
|
||||
}
|
||||
} getOrElse NotFound
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user