Making sure relative logo URL is converted to a full path in templates.

This commit is contained in:
mike12345567 2021-05-07 14:30:37 +01:00
parent d517ca1ac9
commit 0d38d50878
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@ exports.getSettingsTemplateContext = async (purpose, code = null) => {
} }
const URL = settings.platformUrl const URL = settings.platformUrl
const context = { const context = {
[TemplateBindings.LOGO_URL]: settings.logoUrl || LOGO_URL, [TemplateBindings.LOGO_URL]:
checkSlashesInUrl(`${URL}/${settings.logoUrl}`) || LOGO_URL,
[TemplateBindings.PLATFORM_URL]: URL, [TemplateBindings.PLATFORM_URL]: URL,
[TemplateBindings.COMPANY]: settings.company || BASE_COMPANY, [TemplateBindings.COMPANY]: settings.company || BASE_COMPANY,
[TemplateBindings.DOCS_URL]: [TemplateBindings.DOCS_URL]: