Merge pull request #731 from cjermain/fix-url-encode

BUG: use url_escape to encode URL for browser
pull/750/head
Min RK 10 years ago
commit b37ff2ceb6

@ -83,7 +83,7 @@ from ipython_genutils import py3compat
from jupyter_core.paths import jupyter_runtime_dir, jupyter_path
from notebook._sysinfo import get_sys_info
from .utils import url_path_join, check_pid
from .utils import url_path_join, check_pid, url_escape
#-----------------------------------------------------------------------------
# Module globals
@ -1094,7 +1094,7 @@ class NotebookApp(JupyterApp):
self.exit(1)
relpath = os.path.relpath(self.file_to_run, self.notebook_dir)
uri = url_path_join('notebooks', *relpath.split(os.sep))
uri = url_escape(url_path_join('notebooks', *relpath.split(os.sep)))
else:
uri = 'tree'
if browser:

Loading…
Cancel
Save