jDiction Forum
English => General Questions => Topic started by: Xtream on April 29, 2014, 06:33:19 pm
-
Hello
If article is associated with menu, switching between another languages works without problem and each link has translated alias.
But if our article is in Category Blog here we have an error with alias. Default article is with link for example domain.com/en/blog/11-alias when we switch to another language our link will be domain.com/lv/blog?view=article&id=11 . Is it a bug or I have something wrong in settings?
Here is my check:
Version
Library Version: 1.1.0
Joomla Version 3.2.3 is ok.
Plugin
JDiction Plugin is enabled
Languagefilter is enabled
Database
jDiction Database Driver is selected
Language
Seam to be good
Module
Module is enabled
Common mistakes
The default editor is not tinymce, jDiction does only support tinymce at the moment.
-
I have rewrite the language switcher in 1.1.9.1 please try this version, if it works for you i will release it as 1.2.0
-
Hello.
No, it doesn't solve it. I try 1.1.9.1 and 1.1.9.2 and in both versions after language change I am redirected to parent category not in to translated article.
I check a source and here is something strange with urls...
<base href="http://domain.com/en/blog/6-bichon-frise" /> <- this url I see when I first time open article and it's correct url
<link href="http://domain.com/en/blog?catid=6&id=6:bichon-frise" rel="canonical" /> <- why this url are non-sef?
<link href="/lv/blogs" rel="alternate" type="text/html" hreflang="lv-LV" lang="lv-LV" title="Blogs" /> <- this is in version 9.1 and 9.2 and itš wrong alternate
code in lang module is
<a href='/lv/blogs' target='_self' class='jDlang lang lv-LV' title="lv - Blogs" >lv</a>
-
Ok I will look at it.
-
I tested it and it works fine on my test installation, maybe you could give me superadmin access per pm?
-
So, now I had some time to check the problem.
It seams that you don't use the default mod_menu and jdiction expected that mod_menu does some url magic before jdiction kicks in. Anyway I changed the way jdiction calculates the url.
The alias of the article is not translated because thats not possible atm but this will come later.
btw. you should add this to your css to suppress outlines when clicking on links.
a, a:active, a:hover {
outline:0;
}
-
Ok, thank you for help.