Skip to content

Conversation

minrk
Copy link
Member

@minrk minrk commented Apr 19, 2017

URLs always need to be relative to base_url in the javascript, because they will 404 when run on a non-empty URL prefix (e.g. JupyterHub).

closes jupyterhub/jupyterhub#1086

I also removed a couple of outdated and incorrect examples while finding other instances of mistaken absolute paths.

link.type = 'image/x-icon';
link.rel = 'shortcut icon';
link.href = src;
link.href = utils.url_path_join(utils.get_body_data('baseUrl'), src);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The paths passed into this function have a leading / - is this OK, or do they need to be changed as you've changed the other path below?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@minrk ping! If you decide this isn't a problem, feel free to push the green button.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

url_path_join strips intermediate /, so this is fine.

@minrk minrk merged commit 521f43f into jupyter:master Apr 24, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

notebook 5.0 favicon / favicon-busy fail to load

3 participants