Merge pull request #2477 from takluyver/i2476

Avoid double-encoding item path for view button
This commit is contained in:
Matthias Bussonnier 2017-05-07 19:36:38 -07:00 committed by GitHub
commit c50b47af12

View File

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