mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-09 03:50:45 +08:00
avoid double-base-url when launching browser
default_url contains base_url, and so does connection_url
This commit is contained in:
parent
43165c942c
commit
a9fe394b2e
@ -1211,7 +1211,8 @@ class NotebookApp(JupyterApp):
|
||||
relpath = os.path.relpath(self.file_to_run, self.notebook_dir)
|
||||
uri = url_escape(url_path_join('notebooks', *relpath.split(os.sep)))
|
||||
else:
|
||||
uri = self.default_url
|
||||
# default_url contains base_url, but so does connection_url
|
||||
uri = self.default_url[len(self.base_url):]
|
||||
if browser:
|
||||
b = lambda : browser.open(url_path_join(self.connection_url, uri),
|
||||
new=2)
|
||||
|
Loading…
Reference in New Issue
Block a user