English > General Questions

jdlanguage issue when removing url language code for default language

(1/2) > >>

Okay, I'm running into an issue with jdiction's jdlanguage switcher

if In the joomla language filter plugin, I set the option not to show the language code of the default language ( which produces a better looking url and improves seo IMO ) then the jdlanguage switcher helper will still try and remove the language code of the url with "JString::substr" but end up removing part of the url.

For example if I have an article under a category, let's say the url is www.test.com/12-category/article-title;

it will turn that url to www.test.com/sc/category/article-title for simplified chinese.. if you pay attention you will see that the id of the category has been truncated "12-",

if I keep all the tags enabled there is no issue, it will simply remove the "en/" part of the url instead of the last 3 characters of the base url.

There is another issue with the meta tags generation, the title attribute should not be the menu item but the article's title in the specified language.   

I'm a php newbie and would appreciate if you could help me.

Thank you

Harald Leithner:
I know this problem and try to fix it next week.

About the title of the meta tags I'm not sure if this is correct but maybe makes sense, problem I see is that I maybe don't have this information at the time of rendering...

Thank you.

I think it would be better for SEO to query the document instead of the menuitem.     

Oh and I thought I should point out that the jdlanguage module uses the relative urls instead of the absolute urls in the headers, SEMRUSH has issues with that and advises against using relative URLS.   

This was easier for me to fix. in the mod_jdlanguage.php file

any news on the bug fixes?


[0] Message Index

[#] Next page

Go to full version