From d04e33eb6bbc28b77703141d5fc33a78a457a46f Mon Sep 17 00:00:00 2001 From: Eric Knibbe Date: Wed, 11 Nov 2020 11:39:16 -0500 Subject: [PATCH] fix: use absolute URL for logo in email if path relative (#2628) --- server/core/mail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/mail.js b/server/core/mail.js index 43cf0141..0089c3bc 100644 --- a/server/core/mail.js +++ b/server/core/mail.js @@ -56,7 +56,7 @@ module.exports = { subject: `${opts.subject} - ${WIKI.config.title}`, text: opts.text, html: _.get(this.templates, opts.template)({ - logo: WIKI.config.logoUrl, + logo: (WIKI.config.logoUrl.startsWith('http') ? '' : WIKI.config.host) + WIKI.config.logoUrl, siteTitle: WIKI.config.title, copyright: WIKI.config.company.length > 0 ? WIKI.config.company : 'Powered by Wiki.js', ...opts.data