diff --git a/www/common/outer/login-block.js b/www/common/outer/login-block.js index 0d75fdfca..c5026c565 100644 --- a/www/common/outer/login-block.js +++ b/www/common/outer/login-block.js @@ -133,7 +133,7 @@ define([ // 'block/' here is hardcoded because it's hardcoded on the server // if we want to make CryptPad work in server subfolders, we'll need // to update this path derivation - return (ApiConfig.fileHost || window.location.origin) + return (ApiConfig.fileHost || ApiConfig.httpUnsafeOrigin || window.location.origin) + '/block/' + publicKey.slice(0, 2) + '/' + publicKey; };