jDiction Forum

English => General Questions => Topic started by: Xtream on April 29, 2014, 06:33:19 pm

Title: Problem with blog article alias
Post 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.
Title: Re: Problem with blog article alias
Post by: Harald Leithner on April 29, 2014, 09:14:01 pm
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
Title: Re: Problem with blog article alias
Post by: Xtream on May 01, 2014, 08:26:24 pm
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&amp;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>
Title: Re: Problem with blog article alias
Post by: Harald Leithner on May 01, 2014, 09:49:11 pm
Ok I will look at it.
Title: Re: Problem with blog article alias
Post by: Harald Leithner on May 02, 2014, 06:50:42 pm
I tested it and it works fine on my test installation, maybe you could give me superadmin access per pm?
Title: Re: Problem with blog article alias
Post by: Harald Leithner on May 06, 2014, 10:49:45 am
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.

Code: [Select]
a, a:active, a:hover {
    outline:0;
}
Title: Re: Problem with blog article alias
Post by: Xtream on May 06, 2014, 06:35:02 pm
Ok, thank you for help.