jDiction Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

jDiction 2.2.0 released. http://jdiction.org/downloads

Author Topic: 404 when switching language  (Read 12153 times)

zigzo

  • Newbie
  • *
  • Posts: 11
    • View Profile
404 when switching language
« 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!
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: 404 when switching language
« Reply #1 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.
Logged
Joomla! 5.0 Release Manager
Vote at JED

zigzo

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: 404 when switching language
« Reply #2 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?
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: 404 when switching language
« Reply #3 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
Logged
Joomla! 5.0 Release Manager
Vote at JED

zigzo

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: 404 when switching language
« Reply #4 on: October 01, 2013, 08:54:08 am »

ok, thanks for the reply~
Logged