diff --git a/addons/website/static/src/components/dialog/seo.js b/addons/website/static/src/components/dialog/seo.js index da690aad728..e9e7f560b22 100644 --- a/addons/website/static/src/components/dialog/seo.js +++ b/addons/website/static/src/components/dialog/seo.js @@ -16,6 +16,7 @@ const seoContext = reactive({ title: '', seoName: '', metaImage: '', + defaultTitle: '', }); class MetaImage extends Component {} @@ -172,7 +173,7 @@ class Keyword extends Component { } get usedInTitle() { - return this.isKeywordIn(this.seoContext.title); + return this.isKeywordIn(this.seoContext.title || this.seoContext.defaultTitle); } get usedInDescription() { @@ -396,6 +397,7 @@ export class OptimizeSEODialog extends Component { seoContext.description = this.getMeta({ name: 'description' }); this.previewDescription = this.env._t("The description will be generated by search engines based on page content unless you specify one."); this.defaultTitle = this.getMeta({ name: 'default_title' }); + seoContext.defaultTitle = this.defaultTitle; this.url = path; seoContext.metaImage = this.data.website_meta_og_img || this.getMeta({ property: 'og:image' });