Cleanup url handling

This commit is contained in:
Tankred Hase
2016-06-10 12:06:08 +02:00
parent 405bb84ca6
commit d5bd65b4bc
8 changed files with 92 additions and 25 deletions

View File

@@ -69,7 +69,7 @@ class Email {
html: template.html,
params: {
name: userId.name,
baseUrl: origin.protocol + '://' + origin.host,
baseUrl: util.url(origin),
keyId: encodeURIComponent(keyId),
nonce: encodeURIComponent(userId.nonce)
}