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 595698b7c9
commit 2081dd96e0
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 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]: