We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d994409 commit 6ce6201Copy full SHA for 6ce6201
jupyterlab_github/__init__.py
@@ -100,5 +100,7 @@ def load_jupyter_server_extension(nb_server_app):
100
nb_server_app (NotebookWebApplication): handle to the Notebook webserver instance.
101
"""
102
web_app = nb_server_app.web_app
103
- host_pattern = '.*$'
104
- web_app.add_handlers(host_pattern, [(r'/github%s' % path_regex, GitHubHandler)])
+ base_url = web_app.settings['base_url']
+ endpoint = url_path_join(base_url, 'github')
105
+ handlers = [(endpoint + "(.*)", GitHubHandler)]
106
+ web_app.add_handlers('.*$', handlers)
0 commit comments