-
Notifications
You must be signed in to change notification settings - Fork 390
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
Add anchors to filepath? #850
Comments
Hi. My guess is that you'd have to escape/encode the |
Him Tim, thanks for the reply. The actual URL generated by the BinderHub portal form looks like this: If I use another arbitrary character like pipe, the URL looks like: So it seems like the escaped Thanks! |
BinderHub uses a token to access to the notebook server for each launch (for each temporary user). Just before redirecting to user server, it logs "server running at .../tree?token=xyz". But in your case server url becomes "/tree/myfile.ipynb#section2?token=xyz" and because token parameter is behing To have it working the server url must be generated as "/tree/myfile.ipynb?token=xyz#section2" and I think this can be achived by updating here: binderhub/binderhub/static/js/src/image.js Lines 37 to 58 in 5544f70
|
Thanks Kenan, that's super helpful. |
I had the same issue with a urlpath redirect containing a |
Hi 👋 I think this is something that has to be handled by the application (JupyterLab or notebook), not BinderHub. If you have more questions please use the Jupyter community forum https://discourse.jupyter.org/. |
Is it possible to, when using
filepath=
to open a specific file, specify a section/anchor to jump to? For example, if I have this in my filemyfile.ipynb
:<a id='section2'></a>
I'd love to be able to use
filepath=myfile.ipynb#section2
to open that file to that anchor.It looks like something currently sees
#
infilepath
and redirects me to a prompt to enter a token or password. I've tried various things withurlpath
as well.Thanks!
The text was updated successfully, but these errors were encountered: