Skip to Content
Menú
This question has been flagged
1 Respondre
677 Vistes

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
Descartar
Autor

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

Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
0
de juny 25
301
2
de juny 25
356
0
d’abr. 25
752
1
de març 25
776
1
de febr. 25
1045