Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Multilanguage - wrong language for home
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 4 (Joomla 1.6/1.7/2.5+ compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1
  • 2

TOPIC: Multilanguage - wrong language for home

Multilanguage - wrong language for home 12 years ago #35278

Joomla version: 2.5.8
Joomsef version: 4.2.9
PHP-version: 5.3.3-7+squeeze14

I am using the native multilanguage function of Joomla. Haveing setup 3 menu's one for each language.

Three languages are nl, de and en with Dutch as main language.
English is disabled as it's not ready yet.

Joomsef creates all the urls correctly in the beginning but after a while something odd happens.

The urls are set up as:
www.billybird.nl/nl for Dutch
www.billybird.nl/de for German
www.billybird.nl/en for English (disabled atm)

In de Dutchmenu when I go to a subpage via the menu, the link back to home redirects to the wrong language.
The home url links to www.billybird.nl/en instead of www.billybird.nl/nl

In the Germanmenu when I go to a subpage, the home links to www.billybird.nl/nl instead of www.billybird.nl/de

But when I am on the homepage it does show the correct url for the home url.

I enabled the tracer but I can't make much out of it. It does show the correct referer:

From: www.billybird.nl/nl/bezoekersinfo/entreeprijzen
Referer: www.billybird.nl/nl
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11

#1: call_user_func_array(Array, Array), /libraries/joomla/application/router.php line 425
#2: JRouter->_processBuildRules(JURI), /includes/router.php line 440
#3: JRouterSite->_processBuildRules(JURI), /libraries/joomla/application/router.php line 194

Any help why it redirects to the wrong language home url when clicking on any menu item?

Thanks in advance
The topic has been locked.

Re: Multilanguage - wrong language for home 12 years ago #35286

I have purged all SEF urls and cleared the cache.
I let joomsef generate new links.

It all works correctly when I do that for a while. But after a day or two things start to mess up in the way I described above.

Also I see it generates links for the same page 4 times, every time for a different language code. It shouldn't do that. I have select the pages for a specific language.

For example:

nl/activiteiten/gratis-friet index.php?option=com_content&catid=13&id=139&lang=nl&view=article&Itemid=137
nl/activiteiten/gratis-friet index.php?option=com_content&catid=8&id=139&lang=nl&view=article&Itemid=137
nl/activiteiten/gratis-friet index.php?option=com_content&catid=13&id=139&lang=de&view=article&Itemid=137
nl/activiteiten/gratis-friet index.php?option=com_content&catid=13&id=139&lang=en&view=article&Itemid=137

First two links is correct, the last two shouldn't be created.
It has the German and English language code in them but it's a SEF url for a Dutch page.

Maybe links like these cause the messing up of the home urls as I describe in my first post perhaps?
The topic has been locked.

Re: Multilanguage - wrong language for home 11 years, 12 months ago #35324

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,

Could you post the trace information for wrong URLs from your second post? Thank you.
ARTIO Support Team
The topic has been locked.

Re: Multilanguage - wrong language for home 11 years, 11 months ago #35452

Hi Dajo,

Here are the trace info for the 4 links in my second post:

nl/activiteiten/gratis-friet
index.php?option=com_content&catid=13&id=139&lang=nl&view=article

No trace information for this one

--------------------------------
nl/activiteiten/gratis-friet
index.php?option=com_content&catid=8&id=139&lang=nl&view=article


Trace Information: From: www.billybird.nl/nl/activiteiten/agenda
Referer: www.billybird.nl/nl/bezoekersinfo/abonnementen
User agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; BTRS123113; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

#1: call_user_func_array(Array, Array), /libraries/joomla/application/router.php line 425
#2: JRouter->_processBuildRules(JURI), /includes/router.php line 440
#3: JRouterSite->_processBuildRules(JURI), /libraries/joomla/application/router.php line 194

--------------------------------
nl/activiteiten/gratis-friet
index.php?option=com_content&catid=13&id=139&lang=de&view=article


Trace Information: From: www.billybird.nl/de
Referer: www.billybird.nl/nl
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11

#1: call_user_func_array(Array, Array), /libraries/joomla/application/router.php line 425
#2: JRouter->_processBuildRules(JURI), /includes/router.php line 440
#3: JRouterSite->_processBuildRules(JURI), /libraries/joomla/application/router.php line 194

--------------------------------
nl/activiteiten/gratis-friet
index.php?option=com_content&catid=13&id=139&lang=en&view=article


Trace Information: From: www.billybird.nl/en
Referer:
User agent: Mozilla/5.0 (compatible; AhrefsBot/4.0; +ahrefs.com/robot/)

#1: call_user_func_array(Array, Array), /libraries/joomla/application/router.php line 425
#2: JRouter->_processBuildRules(JURI), /includes/router.php line 440
#3: JRouterSite->_processBuildRules(JURI), /libraries/joomla/application/router.php line 194



I also included a PDF file with screenshots of my current settings. Maybe it proves useful.

Thanks in advance!
The topic has been locked.

Re: Multilanguage - wrong language for home 11 years, 11 months ago #35453

ah, my pdf file wasn't allowed to be attached. Have put it in my Dropbox folder:

PDF with screenshots
Last Edit: 11 years, 11 months ago by Regalo Webdiensten.
The topic has been locked.

Re: Multilanguage - wrong language for home 11 years, 11 months ago #35454

The example links are not such good examples as it turns out the linke comes from a module which is set to all languages.
So that explains why the links are created for all languages.

I have enabled the creation of SEF links again and as soon as I click on a Dutch menu item, the homepage link directs to the English homepage. (www.billybird.nl/en

I have been checking alot more links but the weird thing is that for some menu's the homepage link is correct.

I'm going to have a closer look to this of there might be a reason why it goes wrong for some but not for all pages.
The topic has been locked.
  • Page:
  • 1
  • 2
User Login Empty