From 3739d74afe824554b37b1b52ed32ada33692c01a Mon Sep 17 00:00:00 2001 From: Kamen Zhekov Date: Fri, 15 Oct 2021 07:16:05 +0000 Subject: [PATCH] [IMP] website - add noindex when not browsing configured domain Description of the issue/feature this PR addresses: Currently, search engines index a SAAS-hosted website twice (once for the actual domain, and once for the .odoo.com domain) which is something that should be preventable. Desired behavior after PR is merged: If a domain name is configured, and the website is accessed through a different domain than the configured one, the noindex tag appears, preventing crawlers from indexing it.. task-2418904 closes odoo/odoo#78425 Signed-off-by: Romain Derie (rde) --- addons/website/views/website_templates.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/addons/website/views/website_templates.xml b/addons/website/views/website_templates.xml index e69dd50c5c9..eec3f871774 100644 --- a/addons/website/views/website_templates.xml +++ b/addons/website/views/website_templates.xml @@ -69,8 +69,8 @@ - + @@ -2309,6 +2309,10 @@