Canonical link, url generated error
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.
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.
-
- Joomla! Apprentice
- Posts: 8
- Joined: Wed Jun 22, 2016 10:11 am
Canonical link, url generated error
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
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
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Canonical link, url generated error
Which version of Joomla are you using?
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Apprentice
- Posts: 8
- Joined: Wed Jun 22, 2016 10:11 am
Re: Canonical link, url generated error
Joomla 3.5.1
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Canonical link, url generated error
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
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Apprentice
- Posts: 8
- Joined: Wed Jun 22, 2016 10:11 am
Re: Canonical link, url generated error
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
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
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Canonical link, url generated error
Have you solved your issue or not?
Confused. Where do you see such a parameter?the only thing occurs to me is to turn off the option "alternative labels" plugin "System - Language Filter".
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Canonical link, url generated error
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.
and
Something added to Joomla vanilla is definitely changing the default code.
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" />
Code: Select all
<link href="https://www.eco-taxi.es/es/reservar-taxi.html" rel="alternate" hreflang="x-default" />
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Apprentice
- Posts: 8
- Joined: Wed Jun 22, 2016 10:11 am
Re: Canonical link, url generated error
the only difference I find about two pages is this file
/media/system/js/html5fallback.js
but I have no information about it.
/media/system/js/html5fallback.js
but I have no information about it.
-
- Joomla! Apprentice
- Posts: 8
- Joined: Wed Jun 22, 2016 10:11 am
Re: Canonical link, url generated error
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 .
on the contact page also it occurs .
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Canonical link, url generated error
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.
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
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Apprentice
- Posts: 8
- Joined: Wed Jun 22, 2016 10:11 am
Re: Canonical link, url generated error
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
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.
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Canonical link, url generated error
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
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Apprentice
- Posts: 8
- Joined: Wed Jun 22, 2016 10:11 am
Re: Canonical link, url generated error
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
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
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Canonical link, url generated error
I tested with a contact (vanilla joomla and protostar) and I do get the correct alternate.
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.
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" />
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
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Apprentice
- Posts: 8
- Joined: Wed Jun 22, 2016 10:11 am
Re: Canonical link, url generated error
Thank you very much for your help, I will continue investigating.
if I reach a solution informs you it.
if I reach a solution informs you it.