-
Notifications
You must be signed in to change notification settings - Fork 311
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼
There was a problem hiding this 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): |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefix all extension URLs with base_url (including static)
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.