Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
916 Widoki

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

Awatar
Odrzuć
Autor

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

Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lip 25
422
0
cze 25
508
0
sie 25
356
2
cze 25
651
0
kwi 25
912