diff --git a/IPython/html/static/base/js/utils.js b/IPython/html/static/base/js/utils.js
index 2f2bce5..70f0e34 100644
--- a/IPython/html/static/base/js/utils.js
+++ b/IPython/html/static/base/js/utils.js
@@ -371,6 +371,9 @@ IPython.utils = (function (IPython) {
// join a sequence of url components with '/'
var url = '';
for (var i = 0; i < arguments.length; i++) {
+ if (arguments[i] === '') {
+ continue;
+ }
if (url.length > 0 && url[url.length-1] != '/') {
url = url + '/' + arguments[i];
} else {