Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
750 Ansichten

Hello, seobility says " The canonical link points to a different domain.". I need to know where the line of code is found in html or if there is a line of code I can put in the custom code area to change the current url it is pointing to and change it to the correct one.

Thank you

Avatar
Verwerfen
Autor

That first step fixed it, thank you so much!!!

Beste Antwort

Odoo automatically generates canonical URLs for website pages to prevent duplicate content issues. The canonical URL should reflect the correct domain for your website.

How to Fix the Issue

  1. Check Your Website Settings:
    • Go to Website app.
    • Click on Configuration > Settings.
    • Make sure the Domain field has the correct domain name for your website. For example: www.yourdomain.com. This setting is crucial as Odoo uses it to generate the canonical URLs.
  2. Manual Check on Pages:
    • Go to Website > Site > Pages.
    • Open each page and click on Site > Properties.
    • Verify that the Page URL is correct. While you can modify this, it's more likely the global setting is the root cause.
  3. System Parameter (If Needed):
    • Activate developer mode. To do so, go to Settings, then activate developer mode.
    • Go to Settings > Technical > System Parameters.
    • Search for the key web.base.url.
    • Ensure that the value is set to your correct domain, including https://. For example: https://www.yourdomain.com.
    • If the key doesn't exist, create it.

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Juli 25
17
0
Juni 25
372
2
Juni 25
430
0
Apr. 25
782
1
März 25
805