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