Linked comments in Pull request is not rendering correctly in Bitbucket Datacenter
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
When adding a link in a Pull Request comment, please ensure to include the 'http://' or 'https://' protocol at the beginning of the URL. If this is omitted, the link will redirect to the open Pull Request itself, rather than the intended destination.
Environment
7.x,8.x
Cause
The absence of the "http://" or "https://" protocol before the actual URL.
Solution
Although the link appears correctly formatted, the lack of "https://" causes the browser to interpret it as a relative URL. To resolve this issue, ensure that "https://" is added to the beginning of the URL. Doing so will ensure the link directs to the intended webpage rather than the Pull Request details.