From 1d7e6007ba27256649e357ee62aab19e2566e173 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Thu, 4 May 2017 12:34:52 +0100 Subject: [PATCH] Avoid double-encoding item path for view button Closes gh-2476 --- notebook/static/tree/js/notebooklist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebook/static/tree/js/notebooklist.js b/notebook/static/tree/js/notebooklist.js index 4164362d9..178c03a1c 100644 --- a/notebook/static/tree/js/notebooklist.js +++ b/notebook/static/tree/js/notebooklist.js @@ -1026,7 +1026,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); }); };