diff --git a/IPython/html/static/notebook/js/menubar.js b/IPython/html/static/notebook/js/menubar.js
index 0b54e9008..0ba1d8957 100644
--- a/IPython/html/static/notebook/js/menubar.js
+++ b/IPython/html/static/notebook/js/menubar.js
@@ -110,11 +110,8 @@ define([
});
});
this.element.find('#open_notebook').click(function () {
- window.open(utils.url_join_encode(
- that.notebook.base_url,
- 'tree',
- that.notebook.notebook_path
- ));
+ var parent = utils.url_path_split(that.notebook.notebook_path)[0];
+ window.open(utils.url_join_encode(that.base_url, 'tree', parent));
});
this.element.find('#copy_notebook').click(function () {
that.notebook.copy_notebook();
diff --git a/IPython/html/tree/handlers.py b/IPython/html/tree/handlers.py
index 9bd3d95bd..45401b114 100644
--- a/IPython/html/tree/handlers.py
+++ b/IPython/html/tree/handlers.py
@@ -38,7 +38,7 @@ class TreeHandler(IPythonHandler):
cm = self.contents_manager
if cm.file_exists(path):
# it's not a directory, we have redirecting to do
- model = cm.get(path, content=False)
+ model = cm.get_model(path, content=False)
# redirect to /api/notebooks if it's a notebook, otherwise /api/files
service = 'notebooks' if model['type'] == 'notebook' else 'files'
url = url_escape(url_path_join(