Broken link when trying to create a pull request
Asked by Dor_Golan:

Hi,

After changing a computer and installing sourcetree when I try to right-click a branch and create a pull request I get a "That link has no power here".

I've tried several branches and different repositories but the result stays the same.

Any thoughts?

Thanks.


Answers:
author: Dor_Golan
body: now I see the problem is that the link is bitbucket.org**//** ...... instead of bitbucket.org**/**......

any idea what's the cause and how to fix it?

Thanks.

comments: author: VilladsR
body: You are right! Same issue here...Question is how to resolve this :)


author: Jordan Rhode
body: I removed my username@ from the remote repository URL to solve this problem


author: SteveFletcher52
body: Not sure if this was primary fix, but it started working for me after doing this. After refresh in settings, pull request opened correctly in Chrome. SourceTree version 2.5.5.0

Link provided.

[Samuel Rule](https://community.atlassian.com/t5/user/viewprofilepage/user-id/39023) [Aug 16, 2017](https://community.atlassian.com/t5/Bitbucket-questions/Re-SourceTree-how-do-i-fix-this-error-when-submitting-a/qaq-p/625402/comment-id/18470#M18470)

I had this error appear randomly when it had been working for me before.

Here is the solution that worked for me:

On the settings page just remove the current remote that is there and then add the exact same one again. This must have refreshed it / woke it up and now I have no probelms

<https://community.atlassian.com/t5/Bitbucket-questions/SourceTree-how-do-i-fix-this-error-when-submitting-a-pull/qaq-p/301417>

comments: author: Dor_Golan
body: That worked. Thanks!


author: Ronan
body: I am getting the same issue with SourceTree v3.4.5 on Windows 10.

![2021-08-15_222924.png](https://community.atlassian.com/t5/image/serverpage/image-id/156031i23F037D96461C72C/image-size/large?v=v2&px=999 "2021-08-15_222924.png")


author: SteveFletcher52
body: I have same issue. When I launch a pull request from SourceTree it goes to

[https://bitbucket.org//projects/MyCompany/repos/MyRepoName/pull-requests?create\&sourceBranch=feature%2fMy_Test_Feature](https://bitbucket.org//projects/MyCompany/repos/MyRepoName/pull-requests?create&sourceBranch=feature%2fMy_Test_Feature)

If I remove the words "projects" and "repos", it will load the correct page. Have not found any answers on how to correct this in sourcetree.

comments: author: VilladsR
body: In another thread a user pointed out that it is the double // after bitbucket.org that is the culprit - at least that was the same for me.


author: bgannin
body: * What version of Sourcetree and which OS?
* Are the remotes configured as expected on each repository still?
* Are your accounts and authentication properly transferred for ST?
* Are you able to login and manually create the PR after pushing the branch to its hosting service?

comments: author: Dor_Golan
body: Sourcetree 2.6.10 on windows 10.

Yes, nothing was changed.

As far as I can tell, yes.

I can create PR manually at bitbucket.

Thanks.


author: Dor_Golan
body: now I see the problem is that the link is bitbucket.org**//** ..... instead of bitbucket.org**/**.....

any idea what's the cause and how to fix it?

Thanks.


author: Jordan Rhode
body: I removed my username@ from the remote repository URL to solve this problem


Tags: bitbucket