"Could not load branches and tags" reloaded (#5071)

Ansariel Hiller avatarAnsariel Hiller created an issue

Apparently it's not possible to load the list of branches and tags if the repository is opened under a custom URL. As long as the URL contains the bitbucket.org URL, everything works fine. If it's something else, it doesn't work.

For instance try to open the branches and tags list on the source tab for the following repositories:

Or another example:

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.