From a9fe394b2e89a053cd2395703f255a98f5d86647 Mon Sep 17 00:00:00 2001 From: Min RK Date: Tue, 12 Apr 2016 14:52:30 +0200 Subject: [PATCH] avoid double-base-url when launching browser default_url contains base_url, and so does connection_url --- notebook/notebookapp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)