From 0d38d50878f51706c1b14bb82d469d6877b4a46e Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 7 May 2021 14:30:37 +0100 Subject: [PATCH] Making sure relative logo URL is converted to a full path in templates. --- packages/worker/src/utilities/templates.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/worker/src/utilities/templates.js b/packages/worker/src/utilities/templates.js index ea03f2727b..a9da10405b 100644 --- a/packages/worker/src/utilities/templates.js +++ b/packages/worker/src/utilities/templates.js @@ -21,7 +21,8 @@ exports.getSettingsTemplateContext = async (purpose, code = null) => { } const URL = settings.platformUrl const context = { - [TemplateBindings.LOGO_URL]: settings.logoUrl || LOGO_URL, + [TemplateBindings.LOGO_URL]: + checkSlashesInUrl(`${URL}/${settings.logoUrl}`) || LOGO_URL, [TemplateBindings.PLATFORM_URL]: URL, [TemplateBindings.COMPANY]: settings.company || BASE_COMPANY, [TemplateBindings.DOCS_URL]: