[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:
Xavier Morel
2021-04-29 05:34:20 +00:00
parent 303c895a86
commit 7c54acaebe
+1 -1
View File
@@ -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"/>