Menu Content

Support

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

Incorrect language code in the url
(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: Incorrect language code in the url

Incorrect language code in the url 11 years, 3 months ago #35892

Hi there

I'm working now with the following configuration:

Joomla 2.5.8
K2 2.6.2
Joomsef 4.3.0
K2 Joomsef plugin 3.0.12
Falang 1.1.7

I have a bilimngual site in English & Spanish. The urls begin to generate just fine, but after a while some strange urls begin to appear, that include wrong language codes. For example, the good urls for the books section are

/en/books and /es/libros

but then suddenly, this one appears: /es_es/books

It's strange, because it seems it's using the "long code" for Spanish, but then the title is in English. The original URL has the es_ES value in the language parameter

index.php?option=com_k2&id=1969&lang=es_ES&view=item

After a while I get hundreds of urls with the es_es prefix.

Any ideas?
The topic has been locked.

Re: Incorrect language code in the url 11 years, 3 months ago #35919

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,

The original URLs should only contain the short language code. Enable the URLs Source Tracing in JoomSEF's Configuration on the Advanced tab and delete the wrong URLs. When they're created again information about their origin will be stored along with them. Please post me that information. Thank you.
ARTIO Support Team
The topic has been locked.

Re: Incorrect language code in the url 11 years, 3 months ago #36009

Thanks, Dajo. Here are some examples:

SEF url: esit/blu-ray
From: http://(ip)/site/esit/cinema?limitstart=70&Itemid=235
Referer:
User agent: Mozilla/5.0 (compatible; Googlebot/2.1; +www.google.com/bot.html)

#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

SEF url: es_es/login/login
From: http://(ip)/site/?option=com_eventlist&view=editevent&Itemid=202&lang=es_ES
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
The topic has been locked.

Re: Incorrect language code in the url 11 years, 2 months ago #36085

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,

It seems that the problem is caused by search engine bots passing the wrong language code in the URL and JoomSEF then uses it to generate the URLs.

We'll fix this in next version of JoomSEF.
ARTIO Support Team
The topic has been locked.

Re: Incorrect language code in the url 11 years, 2 months ago #36086

Great. Looking forward to it :-)
The topic has been locked.

Re: Incorrect language code in the url 11 years, 2 months ago #36510

I thought this would be fixed with the 4.3.1 version (accoriding to the changelog), but the problem persists...

SEF URL: esit/directory
From: http://(ip)/site/event-submission/edit-event/580-new-event?lang=esIt
Referer:
User agent: Mozilla/5.0 (compatible; Googlebot/2.1; +www.google.com/bot.html)

#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
The topic has been locked.
  • Page:
  • 1
  • 2
User Login Empty