avoid double-base-url when launching browser

default_url contains base_url, and so does connection_url
This commit is contained in:
Min RK 2016-04-12 14:52:30 +02:00
parent 43165c942c
commit a9fe394b2e

View File

@ -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)