Describe the bug
Introduced here :
https://github.com/PrestaShop/PrestaShop/pull/13009/commits/48125d7707fec1e3ec55a91e8db56ac510efdb52
We cannot define a specific URL for the product anymore while using search engine or when splitting products by their attributes. The canonical URL is always used into the template ( cc @jolelievre )
Additional information
PrestaShop version: 1.7.6
PHP version: any
Ping @jolelievre what do you think?
Thanks!
@prestamodule indeed this was introduced in 176 because previously on product with combinations the canonical url (without attribute) redirected to the default combination
this was bad practice for two main reasons:
As for the listing it is better to use the canonical url so that you can have more backlinks to the canonical page But this canonical always displays the default combination by default
And even though the attribute urls are not used in listing any more they are still accessible (when you change an attribute the url is updated you can try to access them it will work) so any previous SEO ranking won't be lost but transferred to the canonical
I understand the SEO improvements. But this is not what we are complaining about here :)
For example, in our search engine module, we are presenting products with the best possible combination. Meaning that we will display a dress as red if the color is available. We are also assigning the best combination URL, so the user will get to the product page with the same image, price, etc.
From this point of view, this is a big regression regarding UX !
We just want to bring back the possibility to force a specific product URL instead of the canonical one, when needed (search engine, faceting, splitting products by their attributes groups...), as it’s the case since PrestaShop 1.5+ 🤷🏻♂️
any news regarding this issue ? @jolelievre ?
any news ?
any news ?
Hi @prestamodule,
sorry for the delay in my response. Ok, I get what you mean with specific product url and I see how it can be troublesome for the user.
Do you suggest to never use the canonical url of the product in listing then? And instead always use product.url
in the templates? I wonder if we should have a setting for this behaviour or if we can force it for everyone.
Either way I guess this won't have drawbacks on SEO since all the product combinations have the same canonical anyway.
@colinegin @marionf what do you think of reverting these modifications?
https://github.com/PrestaShop/PrestaShop/commit/48125d7707fec1e3ec55a91e8db56ac510efdb52#diff-f2a39218feae4cfb78f374d5c0909a9cR30
It seems we're going back-and-forth on these SEO topics 😐maybe we should stop forcing one behavior or another one, and provide options to choose the behavior ? Provide a small configuration panel in "Trafic & SEO" BO page to choose which url to use in the listing ?
@matks @jolelievre That could be an option, but as it's a very little modification into the template, and really specific, i don't think that this is necessary (and also, users will have to wait for 1.7.7...).
We do not think that there will be impact on SEO as the canonical URL is already exposed when you are on the product page.
As @prestamodule I don't think the impact will be huge on SEO, if it's just reverting the change I'm sure we can integrate it in 1762, however if this needs to be managed via a configuration this needs to be validated by the product team
Which is why I'd like an input from them @PrestaShop/prestashop-product-team :)
Also @colinegin maybe we should validate the SEO impact with our SEO consultant.
By the way @prestamodule could you detail a test scenario please, like which kind of product create and what kind of research perform so that the QA team can test and validate it?
Does this problem only occurs when researching with facetedsearch? or is it more generic?
Thank you
i have same issue, and + the social network share the bad url without attribute
https://github.com/PrestaShop/PrestaShop/issues/15655
Thanks
What have you decided here ?
Bonjour François,
J'ai acheté une moudule payant sur prestashop pour sauter ce pb.
Cdt,
Yuan
@xiaoyuan1998 ok, mais je posait la question à la team prestashop pour le core.
Il y a vraiement des modules pour tout !
@colinegin @jolelievre we just had a discussion with @prestamodule and we agreed that the best solution for now is to revert to this to avoid regression :
https://github.com/PrestaShop/PrestaShop/commit/48125d7707fec1e3ec55a91e8db56ac510efdb52#diff-f2a39218feae4cfb78f374d5c0909a9cR30
For me, there is no need for an extra parameter : the perfect solution is to have a product url without combinaison : it's already implemented in ps : just remove the default combinaison and you'll see.
@xiaoyuan1998 ok, mais je posait la question à la team prestashop pour le core.
Il y a vraiement des modules pour tout !
I spent 90 euros for the addone (pretty url):( but at least it works
Hello @jf-viguier ,
sorry this issue is still in progress as we are currently discussing with @jolelievre and a SEO expert, to be sure we do not introduce any SEO regression, while taking into account prestamodule's problem.
We will take a decision asap and keep you updated !
Fixed by https://github.com/PrestaShop/PrestaShop/pull/15964
Thanks @prestamodule, @jf-viguier and @xiaoyuan1998 for helping us on this matter