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

Make all the static files path absolute. #1219

Closed
wants to merge 1 commit into from

Conversation

madhusudancs
Copy link

This is necessary because, if we don't do it all the paths will be
relative to the current URL and whenever we want to render a notebook
view from the paths other than the root URL of /, the static files path
get appended to that path from where we are asking for static files and
since static files are not mapped to those URLs we get HTTP 404 on all
those static files.

For example: If we render a notebook view from say /kernels/kernel-4444.json,
the static files will be looked at /kernel/static/... without this patch.
But after applying this, irrespective of which URL we are at, the static
files will be looked up at /static/...

This is necessary because, if we don't do it all the paths will be
relative to the current URL and whenever we want to render a notebook
view from the paths other than the root URL of /, the static files path
get appended to that path from where we are asking for static files and
since static files are not mapped to those URLs we get HTTP 404 on all
those static files.

For example: If we render a notebook view from say /kernels/kernel-4444.json,
the static files will be looked at /kernel/static/... without this patch.
But after applying this, irrespective of which URL we are at, the static
files will be looked up at /static/...
@minrk
Copy link
Member

minrk commented Jan 2, 2012

I believe PR #1211 already makes this change.

@madhusudancs
Copy link
Author

Ah right. I did not look at it. Sorry about it. I am closing this pull request then.

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.

None yet

2 participants