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

Prefix all extension URLs with base_url (including static) #285

Merged
merged 3 commits into from
Aug 25, 2020

Conversation

Zsailer
Copy link
Member

@Zsailer Zsailer commented Aug 24, 2020

Fixes #282.

Adds the base_url as a prefix to all extensions URLs, including the static namespaced URLs.

I've also added a test to check that the static URL is properly prefixed.

@Zsailer Zsailer requested a review from echarles August 24, 2020 22:34
@Zsailer Zsailer changed the title Base url static Prefix all extension URLs with base_url (including static) Aug 24, 2020
Copy link
Collaborator

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

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

👍🏼

Copy link
Member

@echarles echarles left a comment

Choose a reason for hiding this comment

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

Tested with the example and works as expected. Thx a lot @Zsailer for this fixe and for the unit test. Code LGTM. Merging.

@@ -45,7 +45,7 @@ def _get_config_dir(user=False, sys_prefix=False):
return extdir


def _get_extmanager_for_context(user=False, sys_prefix=False):
def _get_extmanager_for_context(write_dir="jupyter_server_config.d", user=False, sys_prefix=False):
Copy link
Member

Choose a reason for hiding this comment

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

Sorry for commenting on an old, merged PR, but what is this argument for? It is unused and undocumented in docstring.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch, @vidartf. I've updated this function to use the argument and added a docstring in #297.

@blink1073 blink1073 added this to the 1.0 Release milestone Sep 17, 2020
Zsailer added a commit to Zsailer/jupyter_server that referenced this pull request Nov 18, 2022
hMED22 pushed a commit to hMED22/jupyter_server that referenced this pull request Jan 23, 2023
Prefix all extension URLs with base_url (including static)
@Zsailer Zsailer deleted the base_url-static branch January 16, 2024 21:47
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.

Static content with base_url
4 participants