English > General Questions
BUG? Incorrect jdlanguage module links
(1/1)
mysaq:
Hi, I'm expiriencing a problem with bad links in lang switching module. When one clicks on some article in category blog and (in that article) tries to switch the language via the jdlanguage module, only an error page appears because of bad link...
Czech (original) link: ...something.cz/cz/foto/10-testovaci-galerie.html
English (expected) link: ...something.cz/en/photo/10-test-gallery.html
jDiction (eng) generated link: ...something.cz/en/photoestovaci-galerie.html
I changed the line 189 in the jdlanguage module helper and now the problem is gone. But the last part of link is not translated. (The article is translated and has "Test gallery" Eng title and "test-gallery" alias.)
Original: $path = substr($path, strlen($base));
Edit: $path = substr($path, strlen($base)-5);
Generated link after edit: ...something.cz/en/photo/10-testovaci-galerie.html
Joomla 3.3.0 // jDiction 1.2.0
Harald Leithner:
Hmm strange. I'm on vacation and will check this next week.
Harald Leithner:
would you please test to deactivate the ".html" extension?
mysaq:
Yes. That's it! No error is appearing now.
And I've noticed something... The last part of link is translated correctly if the requested language is chosen before one opens an article in a category blog. But in case of switching languages while viewing an article from category blog, the last part of link remains untranslated. [Or (vice versa) remains translated in case of switching the lang back to the native one.]
Navigation
[0] Message Index
Go to full version