From f43ac2f928b8f7ad81294ed4c19f0a69c9469575 Mon Sep 17 00:00:00 2001 From: Grant Nestor Date: Tue, 30 May 2017 10:44:38 -0700 Subject: [PATCH] Fix double url-encoding issue on view file --- notebook/static/tree/js/notebooklist.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notebook/static/tree/js/notebooklist.js b/notebook/static/tree/js/notebooklist.js index 705c273e1..604dc6da1 100644 --- a/notebook/static/tree/js/notebooklist.js +++ b/notebook/static/tree/js/notebooklist.js @@ -1037,7 +1037,7 @@ define([ var item_path = utils.encode_uri_components(item.path); // Handle HTML files differently var item_type = item_path.endsWith('.html') ? 'view' : 'files'; - window.open(utils.url_path_join(that.base_url, item_type, utils.encode_uri_components(item_path)), IPython._target); + window.open(utils.url_path_join(that.base_url, item_type, item_path), IPython._target); }); }; @@ -1047,7 +1047,7 @@ define([ var item_path = utils.encode_uri_components(item.path); // Handle ipynb files differently var item_type = item_path.endsWith('.ipynb') ? 'notebooks' : 'edit'; - window.open(utils.url_path_join(that.base_url, item_type, utils.encode_uri_components(item_path)), IPython._target); + window.open(utils.url_path_join(that.base_url, item_type, item_path), IPython._target); }); };