New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"View file on fork" link in file view #2810
Comments
PR welcome :) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Back to this topic: I think this feature can be part of The forks we list could point to the same view (in this case, the same file) instead of opening the fork’s homepage. We already have this behavior for links under the More menu, where |
Food for thought. I was thinking about this. We dont know what branch to open the file on. I think the best way to do this is by copying how |
I think we should just alter the existing link if For example, on this page: // https://github.com/yakov116/refined-github/tree/123/media The "forked from sindresorhus/refined-github" link: Should point to: // https://github.com/sindresorhus/refined-github/tree/HEAD/media |
Brilliant and simple idea |
The same concept can be applied to |
E.g. file view page, like:
https://github.com/sindresorhus/refined-github/blob/master/source/options.html
would have a "View file on fork" link (button) which would redirect you to the file on your fork, i.e. for me it would be (assuming I would have a fork of this repo):
https://github.com/jack1142/refined-github/blob/master/source/options.html
If user doesn't have the fork yet, either the button should not be available or it should also create the fork for the user.
The text was updated successfully, but these errors were encountered: