Making sure relative logo URL is converted to a full path in templates.
This commit is contained in:
parent
595698b7c9
commit
2081dd96e0
|
@ -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]:
|
||||
|
|
Loading…
Reference in New Issue