[FIX] website: remove t-raw from main layout
One was always there, the other was apparently added due to a double escaping issue. Seems unnecessary either way: - Additional_title should always be set via markup, meaning it's marked as safe (if necessary). - The other one is less clear but neither website.name nor company.name should contain markup so... Trying to repro the issue reported at 1725212, still seems to work fine.
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
<t t-if="not additional_title and main_object and 'name' in main_object">
|
||||
<t t-set="additional_title" t-value="main_object.name"/>
|
||||
</t>
|
||||
<t t-set="default_title"> <t t-if="additional_title"><t t-raw="additional_title"/> | </t><t t-raw="(website or res_company).name"/> </t>
|
||||
<t t-set="default_title"> <t t-if="additional_title"><t t-out="additional_title"/> | </t><t t-out="(website or res_company).name"/> </t>
|
||||
<t t-set="seo_object" t-value="seo_object or main_object"/>
|
||||
<t t-if="seo_object and 'website_meta_title' in seo_object and seo_object.website_meta_title">
|
||||
<t t-set="title" t-value="seo_object.website_meta_title"/>
|
||||
|
||||
Reference in New Issue
Block a user