diff --git a/IPython/frontend/html/notebook/static/js/kernel.js b/IPython/frontend/html/notebook/static/js/kernel.js
index 75fe272..35980b5 100644
--- a/IPython/frontend/html/notebook/static/js/kernel.js
+++ b/IPython/frontend/html/notebook/static/js/kernel.js
@@ -96,7 +96,6 @@ var IPython = (function (IPython) {
this.iopub_channel = new this.WebSocket(ws_url + "/iopub");
send_cookie = function(){
this.send(document.cookie);
- console.log(this);
}
this.shell_channel.onopen = send_cookie;
this.iopub_channel.onopen = send_cookie;
diff --git a/IPython/frontend/html/notebook/static/js/nbbrowser_main.js b/IPython/frontend/html/notebook/static/js/nbbrowser_main.js
index c5b4587..9ae6256 100644
--- a/IPython/frontend/html/notebook/static/js/nbbrowser_main.js
+++ b/IPython/frontend/html/notebook/static/js/nbbrowser_main.js
@@ -21,7 +21,7 @@ $(document).ready(function () {
$('div#content_toolbar').addClass('ui-widget ui-helper-clearfix');
$('#new_notebook').button().click(function (e) {
- window.open('/new');
+ window.open($('body').data('baseProjectUrl')+'new');
});
$('div#left_panel').addClass('box-flex');
diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js
index 65795bb..d025628 100644
--- a/IPython/frontend/html/notebook/static/js/notebook.js
+++ b/IPython/frontend/html/notebook/static/js/notebook.js
@@ -989,8 +989,10 @@ var IPython = (function (IPython) {
}, 50);
};
+
IPython.Notebook = Notebook;
+
return IPython;
}(IPython));
diff --git a/IPython/frontend/html/notebook/static/js/panelsection.js b/IPython/frontend/html/notebook/static/js/panelsection.js
index ea84567..d1bf8b0 100644
--- a/IPython/frontend/html/notebook/static/js/panelsection.js
+++ b/IPython/frontend/html/notebook/static/js/panelsection.js
@@ -106,15 +106,15 @@ var IPython = (function (IPython) {
PanelSection.prototype.bind_events.apply(this);
var that = this;
this.content.find('#new_notebook').click(function () {
- window.open('/new');
+ window.open($('body').data('baseProjectUrl')+'new');
});
this.content.find('#open_notebook').click(function () {
- window.open('/');
+ window.open($('body').data('baseProjectUrl'));
});
this.content.find('#download_notebook').click(function () {
var format = that.content.find('#download_format').val();
var notebook_id = IPython.save_widget.get_notebook_id();
- var url = '/notebooks/' + notebook_id + '?format=' + format;
+ var url = $('body').data('baseProjectUrl') + 'notebooks/' + notebook_id + '?format=' + format;
window.open(url,'_newtab');
});
};
diff --git a/IPython/frontend/html/notebook/templates/notebook.html b/IPython/frontend/html/notebook/templates/notebook.html
index e8d09b5..5abccdb 100644
--- a/IPython/frontend/html/notebook/templates/notebook.html
+++ b/IPython/frontend/html/notebook/templates/notebook.html
@@ -273,7 +273,6 @@
-