Code Monkey home page Code Monkey logo

Comments (4)

maofree avatar maofree commented on June 28, 2024 1

done
PrestaShop/PrestaShop#35133

from falcon.

Oksydan avatar Oksydan commented on June 28, 2024

Hi @maofree,

ok, we could modify it here but I am not sure thb that we should do it 🤔.
$page.canonical is assigned in frontController via Controller::getCanonicalURL() method. If canonical should be set to the same url maybe it should be proposal to PrestaShop core not theme. I am not SEO expert and my knowledge in this subject is a bit limited. Can you send me resource where can I read more about it.
If it's working this way in PrestaShop core it's not a bug but feature request.

from falcon.

maofree avatar maofree commented on June 28, 2024

Hi
I will open a ticket on prestashop's github.
canonical URLs are used to protect pages from duplication, both internal to the site and external if they made a copy of the site on other servers. at an SEO level, in this way Google would only index the reported page.
you can see it on Google Search Console, for example with sites that have multiple languages and currencies, you would see that Google reports errors because it sees duplications without a canonical URL. A bit like what happens with pagination

however, the condition is activated only when we are on the homepage and only if the canonical URL is null

from falcon.

Oksydan avatar Oksydan commented on June 28, 2024

Hi @maofree,

thank you for creating this issue.
I will close it for now because the PrestaShop project is fixing it on the core side.

from falcon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.