diff --git a/notebook/notebookapp.py b/notebook/notebookapp.py index 24aa7c228..0325670e5 100644 --- a/notebook/notebookapp.py +++ b/notebook/notebookapp.py @@ -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)