Fix double url-encoding issue on view file

pull/2449/head
Grant Nestor 9 years ago
parent c43d258aa2
commit f43ac2f928

@ -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);
});
};

Loading…
Cancel
Save