Canonical link, url generated error

General questions regarding the use of languages in Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
odiackers
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Wed Jun 22, 2016 10:11 am

Canonical link, url generated error

Post by odiackers » Wed Jun 22, 2016 10:17 am

Hi, I'm having major problems with the alternate url joomla generated.

The problem is the following.

"Spanish" main language
secondary language, "English"

page example "en-us, /restablecer-contrasena.html"
page example "en-GB, /reset-password.html"

When I'm in the secondary language.
the "alternate link hreflang" is wrong.
I explain:
in the "canonical" link current language.
url maintains that language but does not change the other labels "alternate", ie does not generate the url of the language "alternate".
maintains the url of the active language in the "alternate" labels.

While clicking on the module to change the language, if you go to page and corresponding url.

I have this problem in several joomla in different domains.

After much research I think it's no problem with my configuration.

I hope I understand. I'm using google translate.

Real example:
https://www.eco-taxi.es/en/remind-password.html
https://www.eco-taxi.es/es/recordar-contrasena.html

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Canonical link, url generated error

Post by infograf768 » Wed Jun 22, 2016 10:28 am

Which version of Joomla are you using?
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

odiackers
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Wed Jun 22, 2016 10:11 am

Re: Canonical link, url generated error

Post by odiackers » Wed Jun 22, 2016 10:33 am

Joomla 3.5.1

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Canonical link, url generated error

Post by infograf768 » Thu Jun 23, 2016 9:28 am

I guess you are using a 3rd party extension interfering with the normal default Joomla behavior.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

odiackers
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Wed Jun 22, 2016 10:11 am

Re: Canonical link, url generated error

Post by odiackers » Thu Jun 23, 2016 10:02 am

I have enabled and disabled extensions, plugins, modules, I created new menu items, and delete the cache disabled.
associated and disassociated menus.

the only thing occurs to me is to turn off the option "alternative labels" plugin "System - Language Filter".

In addition I have almost no extensions installed. only k2, AcyMailing, taxibooking of Kanev and jlexreview. I uninstalled all of them.

Thank you

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Canonical link, url generated error

Post by infograf768 » Fri Jun 24, 2016 8:27 am

Have you solved your issue or not?
the only thing occurs to me is to turn off the option "alternative labels" plugin "System - Language Filter".
Confused. Where do you see such a parameter?
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Canonical link, url generated error

Post by infograf768 » Fri Jun 24, 2016 8:41 am

I remarked that, for some other pages, although it is not "pure" joomla default code (canonical instead of hreflang for fr-FR), links are fine.

Code: Select all

<link href="https://www.eco-taxi.es/es/reservar-taxi.html" rel="alternate" hreflang="es-ES" />
  <link href="https://www.eco-taxi.es/fr/livre-de-taxi-en-ligne.html" rel="canonical" />
  <link href="https://www.eco-taxi.es/en/booking-taxi.html" rel="alternate" hreflang="en-GB" />
and

Code: Select all

  <link href="https://www.eco-taxi.es/es/reservar-taxi.html" rel="alternate" hreflang="x-default" />
Something added to Joomla vanilla is definitely changing the default code.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

odiackers
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Wed Jun 22, 2016 10:11 am

Re: Canonical link, url generated error

Post by odiackers » Fri Jun 24, 2016 10:37 am

the only difference I find about two pages is this file

/media/system/js/html5fallback.js

but I have no information about it.

odiackers
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Wed Jun 22, 2016 10:11 am

Re: Canonical link, url generated error

Post by odiackers » Fri Jun 24, 2016 1:29 pm

I'm noting that the problem occurs on pages where text fields to submit a form, on joomla .
on the contact page also it occurs .

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Canonical link, url generated error

Post by infograf768 » Fri Jun 24, 2016 4:00 pm

As I said, Joomla core does NOT add 'canonical' .
Then if it is not an extension, it is your template.
If it is a "framework" type of template, there is the issue.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

odiackers
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Wed Jun 22, 2016 10:11 am

Re: Canonical link, url generated error

Post by odiackers » Fri Jun 24, 2016 4:59 pm

excuse me but this is native.
labels options are in the "filter language" plugin.

I told you that it happens in other joomla me in other domains.

I can turn on or off.

so before, I told you I do not want to disable the option of alternate labels.

attached image plugin
You do not have the required permissions to view the files attached to this post.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Canonical link, url generated error

Post by infograf768 » Sun Jun 26, 2016 8:19 am

Please test your site using the default core template (Protostar) and do not forget to create one template style per content language.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

odiackers
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Wed Jun 22, 2016 10:11 am

Re: Canonical link, url generated error

Post by odiackers » Mon Jun 27, 2016 10:04 pm

I followed his advice but the problem persists.

I have spoken with the developers of the template:
They indicated that I have no problem template.
Still have given me some instructions, I followed.
But the problem persists.

Again, this problem is on pages that have "input box" for sending Joomla form.
And another thing, the only difference I see between right and wrong pages is this file:
/media/system/js/html5fallback.js

Thank you

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Canonical link, url generated error

Post by infograf768 » Tue Jun 28, 2016 6:03 am

I tested with a contact (vanilla joomla and protostar) and I do get the correct alternate.

Code: Select all

<link href="http://localhost:8888/testwindows/trunkgitnew/de/component/contact/contact/24-contact-cat-de/4-contact-de.html?Itemid=136" rel="alternate" hreflang="de-DE" />
	<link href="http://localhost:8888/testwindows/trunkgitnew/fr/a-contact.html" rel="alternate" hreflang="fr-FR" />
	<link href="http://localhost:8888/testwindows/trunkgitnew/english-contacts.html" rel="alternate" hreflang="en-GB" />
	<link href="http://localhost:8888/testwindows/trunkgitnew/it/component/contact/contact/29-contact-cat-it/5-contact-it.html?Itemid=153" rel="alternate" hreflang="it-IT" />
	<link href="http://localhost:8888/testwindows/trunkgitnew/es/component/contact/contact/23-contact-car-es/3-contact-es.html?Itemid=127" rel="alternate" hreflang="es-ES" />
	<link href="http://localhost:8888/testwindows/trunkgitnew/mk/component/contact/contact/38-contact-cat-mk/6-contact-mk.html?Itemid=173" rel="alternate" hreflang="mk-MK" />
	<link href="http://localhost:8888/testwindows/trunkgitnew/ta/component/contact/contact/43-contact-cat-ta/7-contact-ta.html?Itemid=188" rel="alternate" hreflang="ta-IN" />
Once more, I think your extensions are at stake. Possibly the template.

If you like, I can have a look as superUser at your site. I would test by disabling 3rd party extensions, including your template until I find which one is the culprit.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

odiackers
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Wed Jun 22, 2016 10:11 am

Re: Canonical link, url generated error

Post by odiackers » Tue Jul 05, 2016 12:33 am

Thank you very much for your help, I will continue investigating.
if I reach a solution informs you it.


Locked

Return to “Language - Joomla! 3.x”