jDiction Forum

English => General Questions => Topic started by: zigzo on September 30, 2013, 03:58:02 am

Title: 404 when switching language
Post by: zigzo on September 30, 2013, 03:58:02 am
Hello,

I have SEF turned on and I have phocagallery on my menu.
When I try to view the list of categories by clicking the menu, it works. And it can switch to different languages as well.

But when I click into one of the categories (which works) and then try to switch the language, a 404 page is shown.

The correct link of the category is: http://mysite/index.php/en/menu_item_name/category/2-cat-name

But I can see the link my language button wants to go is: http://mysite/index.php/en/menu_item_name?view=category

I did try to add a "category" item in a hidden menu, it works for that given category but not the others.

Similar problem happens when I click the "comment image" link for each image.
It seems that the correct SEF url can't be passed to the language switching buttons.

Is it a problem in phocagallery or language switcher?

Thanks!
Title: Re: 404 when switching language
Post by: Harald Leithner on September 30, 2013, 09:10:36 am
Jdiction tries to create a link that could fail.

Atm its hard to create the correct link for 3rd party components.
Title: Re: 404 when switching language
Post by: zigzo on September 30, 2013, 04:20:33 pm
I see...
Is there a place of the code that I may hardcode some rules for jdiction to create the link?
Title: Re: 404 when switching language
Post by: Harald Leithner on September 30, 2013, 04:40:33 pm
not at the moment, the complete module code must be rewritten because it sucks...

the only way without this error is to disable the module on these pages
Title: Re: 404 when switching language
Post by: zigzo on October 01, 2013, 08:54:08 am
ok, thanks for the reply~