Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Category Page : Canonical URL of the product wrong (!= canonical url on the product page) #15667

Closed
DoIB opened this issue Sep 24, 2019 · 15 comments
Labels
1.7.5.1 Affects versions Can't reproduce Resolution: issue closed because cannot be reproduced SEO & URLs Label: Which BO under menu is concerned

Comments

@DoIB
Copy link

DoIB commented Sep 24, 2019

The variable Canonical URL of a product on the category page is different of the one on the product page.

Prestashop v 1.7.5.1

@khouloudbelguith
Copy link
Contributor

Hi @DoIB,

We have made some fixes in the next versions PrestaShop.
#15013
#13664
#13009
Thanks to check & feedback.

@khouloudbelguith khouloudbelguith added 1.7.5.1 Affects versions SEO & URLs Label: Which BO under menu is concerned NMI Status: issue needs more information labels Sep 24, 2019
@DoIB
Copy link
Author

DoIB commented Sep 24, 2019

Look like the default category of the product is not part on the canonical url variable on the product listing.

@khouloudbelguith
Copy link
Contributor

@DoIB,

on the product listing.

So, you are in the Category page, for example, the default category of the product is not part of the canonical URL variable?
image

Thanks!

@DoIB
Copy link
Author

DoIB commented Sep 24, 2019

No. The url of the product on the listing is different of the url of the product page targeted by the category listing (redirection of the url product).

When i try to change it with the canonical url in the theme, the url is still wrong.
So when i click on the product, i have a redirect (hurtful for SEO).

The url of the product seems to be always align with the current category.
When we try to change with the canonical url of the product, the variable canonical url
of the product (on the listing of the current category) is wrong.

@khouloudbelguith
Copy link
Contributor

@DoIB, I did not manage to reproduce the issue with PS1.7.6.1.
It is the same Product URL
https://drive.google.com/file/d/1-gYMM7Ex2ZSsSuOGMwbVaQSXFS_rvcq6/view
Can you please navigate to the BO => Shop Parameters => Traffic & SEO => check the Schema of URLs
image

Thanks!

@DoIB
Copy link
Author

DoIB commented Sep 24, 2019

Yeah, it's the same schema

@DoIB
Copy link
Author

DoIB commented Sep 24, 2019

In some case, you have a product with multiple category but one default category.

The shop seems to display an product url with the current category (in it) on the product listing of the associated category (instead of one an only one url for all the shop). The url need the default category on it (instead of the current category)

@DoIB
Copy link
Author

DoIB commented Sep 24, 2019

Otherwise, it's hurtfull for SEO :)

@khouloudbelguith
Copy link
Contributor

@DoIB, I did not manage to reproduce the issue with PS1.7.5.2 & PS1.7.6.1.
With PS1.7.5.2
The URL of the product in the category page (the default or no) is the same
image
image

PS1.7.6.1.
image

image

Thanks!

@DoIB
Copy link
Author

DoIB commented Sep 26, 2019

Weird. Could i have something in database scrambling the redirection ?
I will try with the default theme then with the current theme.

If, with the default theme, i have still have the issue, do i have something to inspect or check ? :)

@khouloudbelguith
Copy link
Contributor

@DoIB, did you use any custom module related to the SEO or URLs?

Thanks!

@DoIB
Copy link
Author

DoIB commented Sep 27, 2019

No SEO module or module associated to category or products.
With the default theme, i have the issue.

The products and category come from an import (migrating Magento to Prestashop).

Could i have something in database scrambling the redirection ?

The issue seems to come from the default category. How to check and correct it ? :)

@khouloudbelguith
Copy link
Contributor

@DoIB, Could you please try to regenerate the file .htaccess

  • Rename the old file to .htaccess_old
  • Disable friendly URL
  • Enable friendly URL

Thanks to check and feedback

@DoIB
Copy link
Author

DoIB commented Oct 3, 2019

I checked. It's unchanged.

@khouloudbelguith
Copy link
Contributor

Hi @DoIB,

Despite our several trials, we could not reproduce your issue with the provided information.
It seems that your issue is not a PrestaShop's core bug but most likely a server configuration or customization problem.
I invite you to contact our support team: http://addons.prestashop.com/en/388-support to help you solve your issue.

Thanks!

@khouloudbelguith khouloudbelguith added Can't reproduce Resolution: issue closed because cannot be reproduced and removed NMI Status: issue needs more information labels Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.7.5.1 Affects versions Can't reproduce Resolution: issue closed because cannot be reproduced SEO & URLs Label: Which BO under menu is concerned
Projects
None yet
Development

No branches or pull requests

2 participants