diff --git a/www/common/outer/login-block.js b/www/common/outer/login-block.js index 4916ffa27..5938d4f72 100644 --- a/www/common/outer/login-block.js +++ b/www/common/outer/login-block.js @@ -107,7 +107,7 @@ define([ // if we want to make CryptPad work in server subfolders, we'll need // to update this path derivation return (typeof(ApiConfig.httpUnsafeOrigin) !== 'undefined'? - ApiConfig.httpUnsafeOrigin: window.location.origin) + ApiConfig.httpUnsafeOrigin: window.location.origin + '/') + 'block/' + publicKey.slice(0, 2) + '/' + publicKey; };