Launch from HTTP referrer, autodetect launch URL #891
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Opening this for initial comments, not sure how much time I'll have to follow up in the immediate future.
Background
This adds a new
/autodetect
page that takes the HTTP referrer and converts it to a mybinder URL. You can also paste a GitHub repo URL, GitHub gist URL, GitLab repo URL, or Zenodo DOI into the input box. Currently this is a separate page, mostly copied from the main index.html.Example: In a GitHub repo create a readme with a link to
https://binder.example.org/autodetect
, if it works the referrer will be parsed and converted into a link to launch the repo you came from.An earlier example can be seen at https://github.com/manics/mybinder-referrer/tree/demoTODO:
https://mybinder.org/