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

Redirect problem with static file viewing #189

Open
rabernat opened this issue Apr 28, 2021 · 0 comments
Open

Redirect problem with static file viewing #189

rabernat opened this issue Apr 28, 2021 · 0 comments

Comments

@rabernat
Copy link
Member

rabernat commented Apr 28, 2021

I am trying to make a RISE slideshow using pangeo binder which includes a custom CSS file. RISE is configured to look for a css file called rise.css using a relative path. So if my notebook is running at

https://hub.binder.pangeo.io/user/rabernat-pangeo-osn-demo-yxmimdxv/notebooks/Untitled.ipynb

it looks for

https://hub.binder.pangeo.io/user/rabernat-pangeo-osn-demo-yxmimdxv/notebooks/rise.css

Trying to access that url leads to a redirect to

https://hub.binder.pangeo.io/hub/edit/rise.css

which gives a 404 of course. But I know the file is accessible via

https://hub.binder.pangeo.io/user/rabernat-pangeo-osn-demo-yxmimdxv/files/rise.css

Instead, if I try this on regular binder,

https://hub.gke2.mybinder.org/user/rabernat-pangeo-osn-demo-vhgihnr9/notebooks/rise.css

redirects correctly to

https://hub.gke2.mybinder.org/user/rabernat-pangeo-osn-demo-vhgihnr9/files/rise.css

This suggests a configuration problem in pangeo binder.

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

No branches or pull requests

1 participant