mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-05 12:19:58 +08:00
Merge pull request #2477 from takluyver/i2476
Avoid double-encoding item path for view button
This commit is contained in:
commit
c50b47af12
@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user