From a7387b863387ea8a1281b098bb4bf4329a212931 Mon Sep 17 00:00:00 2001 From: Grant Nestor Date: Thu, 17 Nov 2016 14:20:17 -0800 Subject: [PATCH] Revise https://github.com/jupyter/notebook/pull/1755 --- notebook/static/tree/js/notebooklist.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/notebook/static/tree/js/notebooklist.js b/notebook/static/tree/js/notebooklist.js index 0bc91b1ec..774756f9a 100644 --- a/notebook/static/tree/js/notebooklist.js +++ b/notebook/static/tree/js/notebooklist.js @@ -956,18 +956,18 @@ define([ NotebookList.prototype.view_selected = function() { var that = this; that.selected.forEach(function(item) { - var item_path = item.path; - var w = window.open(utils.url_path_join('/files', item_path)); - }); - } + var item_path = utils.encode_uri_components(item.path); + var w = window.open(utils.url_path_join(that.base_url, '/files', utils.encode_uri_components(item_path)), IPython._target); + }); + }; NotebookList.prototype.edit_selected = function() { var that = this; that.selected.forEach(function(item) { - var item_path = item.path; - var w = window.open(utils.url_path_join('/edit', item_path)); - }); - } + var item_path = utils.encode_uri_components(item.path); + var w = window.open(utils.url_path_join(that.base_url, '/edit', utils.encode_uri_components(item_path)), IPython._target); + }); + }; NotebookList.prototype.duplicate_selected = function() { var message;