Skip to content

Commit

Permalink
fix: use absolute URL for logo in email if path relative (requarks#2628)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricFromCanada authored Nov 11, 2020
1 parent a844a3e commit 81c9e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/core/mail.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 81c9e93

Please sign in to comment.