diff --git a/www/drive/inner.js b/www/drive/inner.js index ed343d724..aba010a2c 100644 --- a/www/drive/inner.js +++ b/www/drive/inner.js @@ -2640,7 +2640,7 @@ define([ else if ($(this).hasClass("cp-app-drive-context-newdoc")) { var type = $(this).data('type') || 'pad'; sessionStorage[Cryptpad.newPadPathKey] = filesOp.isPathIn(currentPath, [TRASH]) ? '' : currentPath; - window.open('/' + type + '/'); + window.open(APP.origin + '/' + type + '/'); } APP.hideMenu(); });