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: jDiction no longer fully working with k2  (Read 34862 times)

wonderland

  • Newbie
  • *
  • Posts: 21
    • View Profile
jDiction no longer fully working with k2
« on: August 30, 2018, 10:00:03 am »

Hello,

I've noticed a possible bug with k2 and jDiction. I didn't notice at which stage it started, but most likely after last joomla and jDiction update. Currently I'm running joomla 3.8.10 and jDiction 2.2.2

The problem is with language switching within and item, categories work fine.

Here are some examples:
K2 Category view
http://visit.jelgava.lv/apskates-objekti/muzeji-un-ekspozicijas
If you change languages in this view (upper right corner), everything will switch nicely.

K2 Item view
http://visit.jelgava.lv/apskates-objekti/muzeji-un-ekspozicijas/item/81-jelgavas-sv-trisvienibas-baznicas-tornis
If you change languages in this view (upper right corner), 404 error is returned.

The problem here is that, for some reason url is constructed a bit wrong, it is missing some characters when switching language. If you take a look at the url below:
This is the correct working url
http://visit.jelgava.lv/ru/dostoprimechatelnosti/muzei-i-ekspozicii/item/81-jelgavas-sv-trisvienibas-baznicas-tornis
But language switcher cuts some symbols from the url "/it"
http://visit.jelgava.lv/ru/dostoprimechatelnosti/muzei-i-ekspoziciiem/81-jelgavas-sv-trisvienibas-baznicas-tornis

What makes this problem very hard to understand, at least for me. Is that this problem occurs only when switching from Latvian (LV) language to others. If I use English or Russian as and then switch to other languages, there is no such problem.


Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: jDiction no longer fully working with k2
« Reply #1 on: August 30, 2018, 12:09:16 pm »

Hi,

the problem is not so hard to understand ;-)

the reason is because you primary language (LV) doesn't use the language tag in the url. And the jdiction languageswitch doesn't honor this case correctly...

If you change this behavior in the joomla language swtiches it should work.

I will check this in jdiction but can't promise when I have fixed it.
Logged
Joomla! 5.0 Release Manager
Vote at JED

wonderland

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: jDiction no longer fully working with k2
« Reply #2 on: August 31, 2018, 12:34:17 am »

Hi,

Thank you so much for such a fast response!

I'm just switching back to having language tag in primary language.

Will keep this in mind for the future :)
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: jDiction no longer fully working with k2
« Reply #3 on: September 25, 2018, 12:21:55 pm »

Logged
Joomla! 5.0 Release Manager
Vote at JED