Close

Issue with Ajax Filter and Multilanguage Site with canonical url

ClaudioCas
9 years ago
#9264 Quote
Avatar
  • 4
Dear all, I have an issue with Ajax filter with a multilanguage ecommerce. When I load a category like http://www.mysite.com/en/bikini, all the url to the products load are like http://www.mysite.com/en/product-seo-url-1, http://www.mysite.com/en/product-seo-url2. When I click on any filter or pager (that cause ajax filter call) all the product urls lost the /en/ and become  http://www.mysite.com/product-seo-url-1,  http://www.mysite.com/product-seo-url-2...
Is it a bug? How can I solve my issue?
Thanks a lot. Claudio
iliyan.tanev
9 years ago
#9267 Quote
Avatar
  • 347
Hi,

We were unable to reproduce this locally. When you click on a product does the url contain the language or you are seeing this only on url preview, when you hover a product ? 
Regards,
Iliyan Tanev
Nop-Templates Dev Team
ClaudioCas
9 years ago
#9277 Quote
Avatar
  • 4

iliyan.tanev wrote:
Hi,

We were unable to reproduce this locally. When you click on a product does the url contain the language or you are seeing this only on url preview, when you hover a product ?



Thanks a lot for your reply. When I load the page with the products they have the url with the language [www.site.com/en/seo-name-prduct1] but when I click on pager or filter, the loaded products lost the language [www.site.com/seo-name-prduct1].
I see this only in url preview, when I click on product without language I had a 301 redirect to the right page, but this
behavior on some products cause a "loop redirect" and the browser show me an error of infinite loop redirection.
iliyan.tanev
9 years ago
#9278 Quote
Avatar
  • 347
Hi,

We are not experiencing this problem locally. You shouldn't get 301s. Maybe you could try to debug the ProductDetails method in Nop.Web/Controllers/ProductController so you could determine where and why the redirect is happening.

You could also try to disable the SEO friendly urls from Administration -> Configuration -> Settings ->  General And Miscellaneous Settings -> Localization Settings, and from there find and uncheck the SEO friendly URLs with multiple languages enabled.
Regards,
Iliyan Tanev
Nop-Templates Dev Team
ClaudioCas
9 years ago
#9279 Quote
Avatar
  • 4
iliyan.tanev wrote:
Hi,

We are not experiencing this problem locally. You shouldn't get 301s. Maybe you could try to debug the ProductDetails method in Nop.Web/Controllers/ProductController so you could determine where and why the redirect is happening.

You could also try to disable the SEO friendly urls from Administration -> Configuration -> Settings ->  General And Miscellaneous Settings -> Localization Settings, and from there find and uncheck the SEO friendly URLs with multiple languages enabled.



Dear Iliyan, thanks for your reply. The 301 is generated from wrong url that missing the language  that is render from ajax filter after an ajax call... I will investigate on it. I don't want to diable the seo url...
iliyan.tanev
9 years ago
#9282 Quote
Avatar
  • 347
Hi,

We have found the origin of the problem and after we fix it we will write here and you should update the plugin.
Regards,
Iliyan Tanev
Nop-Templates Dev Team
ClaudioCas
9 years ago
#9283 Quote
Avatar
  • 4
Thanks a lot.
Btw/OT how can you add new line to your messages? My "enter key" makes only a space


in the textarea of the "new post window"...
iliyan.tanev
9 years ago
#9284 Quote
Avatar
  • 347
Hi,

Could you update the AjaxFilters to latest version and confirm that the fix works for you ? 
What version of nopCommerce are you using ? Because the fix is available for 3.50 only, for now.

About the new lines: 

We are using the "enter key". It shouldn't give you a space. Could you try this on different browser ?
Regards,
Iliyan Tanev
Nop-Templates Dev Team