Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
709 Visualizações

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

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

Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
jun. 25
335
2
jun. 25
395
0
abr. 25
758
1
mar. 25
795
1
fev. 25
1086