From c936e5ae7319e812e1c0c07da68634d0385153fb Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 5 Oct 2017 11:14:41 +0200 Subject: [PATCH] make context menu open correct app on correct port --- www/drive/inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); });