smartblog icon indicating copy to clipboard operation
smartblog copied to clipboard

Problem with smartblog and language switch

Open renzorucco opened this issue 9 years ago • 4 comments

I am creating a site with two languages.

I installed the module that manages the horizontal menu (named responsive mega menu pro). I configured the buttons in the two languages (Italian and English). The menu has configured link system (cms, products etc) and external links that point to a smartblog pages. Selecting the language at the homepage and navigating content there is no problem but if you pick a voice of an external link to a page of the blog and try to change language staying on the same page, select for example English button, gime me a strange link that returns a 404 error.

The link goes from www.dominio.it/it/blog/category/1_ricette.html (Page with the Italian language selected)

to www.dominio.it/en/1-radice (trying to choose English)

The strange thing is that if I type the url www.dominio.it/en/blog/category/1_ricette.html the page is properly displayed in English.

What could be the problem?

renzorucco avatar Dec 17 '15 00:12 renzorucco

I can confirm this bug :( I'd say the problem is that although posts can be set in all available languages, the smartblog module configuration can be set only in default language, so you can set title, description and rewrite_url in italian (your default?) but can't in english. There's no proper rewrite configuration for this lang but rewriting is still enabled and that's causing errors. If you turn of rewriting in your store preferences and use default url (can be accessed from smartblog configuration page) everything seams to work fine. I hope the author of smartblog will check on that...

SharakPL avatar Sep 21 '16 14:09 SharakPL

hello,maybe ,this will help https://www.vicoffers.com/blog/2_wrong-language-contents-bug-with-smartblog-22.html

TiaNex-Com avatar Apr 03 '18 07:04 TiaNex-Com

I confirm the bug, and the iTiaNex URL does not fix the problem... There's another problem. When you are in the content of a page, example: https://www.olivos-savons.com/en/actualite-savon-huile-olive/9_olive-oil-soap-virtues.html, the link to translations is not done with URL rewriting: https://www.olivos-savons.com/en/module/smartblog/details?id_post=9.

This creates 2 pages and therefore a duplicate content for Google... (Be careful if you do a test on the URLs quoted because I put a 301 redirect to avoid duplicate content) ...

Thanks in advance for any help !!!

Mijsoot avatar Jun 29 '18 07:06 Mijsoot

On version 1.7.8.3 please check not only on posts but also on post categories

...rel="alternate"

apavlinets avatar Jun 19 '22 14:06 apavlinets