Skip to content

[bug] Open in bitbucket and commit link to bitbucket server have the incorrect path #876

@CyberT17

Description

@CyberT17

Describe the bug

When viewing the source code for a file. The "Open in Bitbucket" button in the top right corner leads to an invalid url for bitbucket server.
Here is an example of the link that is opened when clicking the "Open in Bitbucket" button. Notice the extra /browse path in the url. If you remove the extra /browse the link is correct.
https://bitbucket-server.com/projects/ABC/repos/some-repo**/browse/browse/**README.MD?at=main

This is also the case when clicking the commit url on the /repos table. It also has an extra /browse in the url.

To reproduce

Setup SB with bitbucket server, view a file and click the "Open in Bitbucket" button and observe that the url is invalid.
On the /repos page, click the commit hash link and observe that the url is invalid

Sourcebot deployment information

Sourcebot version v4.10.28

Additional information

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions