Repository navigation
Redirect to upstream repo when clicking on "View on GitHub" - #9316
Conversation
tierninho
left a comment
There was a problem hiding this comment.
Confirming the View on GitHub button/menu item points to the Upstream repo. Also the contextual commit menu still points to the fork. 👍
However, I deleted the upstream in the cmd line and the View on GitHub button/menu item points to the Upstream repo. Same result if you were to change it to point elsewhere. Is this intended?
Good question! From what I see on the code, the upstream repository is calculated using the GitHub API (via the Based on #9170, I think that this is the expected behaviour, but looping in @billygriffin and @ampinsk to doublecheck. |
@rafeca and @tierninho yep i can confirm this is expected behavior. we care more about the repos on github than local repos for this scenario. |
|
appveyor doesn't seem to be picking this up after the base changed, but this change is safe enough that i'm going to just merge it. |
Closes #9312
Description
This PR changes the redirection URL when clicking the "View on GitHub" main menu item to open the upstream repository when the current repository is a fork.
Release notes
Notes: no-notes