diff --git a/www/common/common-hash.js b/www/common/common-hash.js index d79f7c523..e38fa088e 100644 --- a/www/common/common-hash.js +++ b/www/common/common-hash.js @@ -34,7 +34,7 @@ define([ var getFileHashFromKeys = Hash.getFileHashFromKeys = function (fileKey, cryptKey) { return '/1/' + hexToBase64(fileKey) + '/' + Crypto.b64RemoveSlashes(cryptKey) + '/'; }; - var getUserHrefFromKeys = Hash.getUserHrefFromKeys = function (username, pubkey) { + Hash.getUserHrefFromKeys = function (username, pubkey) { return window.location.origin + '/user/#/1/' + username + '/' + pubkey.replace(/\//g, '-'); };