Skip to content
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

tab activation on link generator #132

Merged
merged 1 commit into from
Jun 29, 2020

Conversation

choldgraf
Copy link
Member

@choldgraf choldgraf commented Jun 29, 2020

This is a relatively minor follow-up on @GeorgianaElena 's PR adding Binder functionality. It does:

  • Add a very small amount of javascript to let people activate a tab with REST parameters
  • Minor tweaks to naming to making "Binder" not "MyBinder" just to avoid confusion and make it a bit more generalized

closes #131

See this link for a demo:

https://110-92329878-gh.circle-artifacts.com/0/html/link.html?tab=binder&repo=wowmyrepo&branch=itsabranch

@yuvipanda do you know if REST params are passed-through with a redirect? ie, will nbgitpuller.link?tab=binder work?

@yuvipanda
Copy link
Contributor

LGTM :)

@choldgraf
Copy link
Member Author

ok then I'm gonna self-merge since this is a docs PR :-)

@choldgraf choldgraf merged commit 19cf43b into jupyterhub:master Jun 29, 2020
@choldgraf choldgraf deleted the nbgitpuller_rest branch June 29, 2020 17:40
@consideRatio
Copy link
Member

consideRatio commented Jun 30, 2020

@choldgraf I recall working to fix an issue with query params not being passed ~a year ago, and think the URL query parameters do pass forward correctly now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto-activate the canvas/binder tab with REST params for nbgitpuller.link
3 participants