-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hreflang links missing in header #13359
Comments
Which component is that? |
BreezingForms, JComments and my own custom built components are the ones where I have noticed it so far. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13359. |
Please install a test site with https://github.com/joomla/joomla-cms/archive/staging.zip |
Hmm, I confirm the issue with JComments when @andrepereiradasilva |
Given that it's now confirmed, do I still need to test with staging? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13359. |
No need indeed to test in staging until we find a solution, if possible. I get here on a staging test site any core component gets these fine and equal |
Issue also on latest 3.7-staging. |
Having 3 menu items for different languages (all associated) is a problem, when you decide to unpublish/move to trash any item and even article/category for that item. languagefilter inserts the following links:
?id=10 is category ID. Seems like only removing association at all helps in this case. |
Moving to trash or Deleting? |
Also @ethernidee |
I've tried unpublishing and moving to trash. Updated previous comment, parser consumed html link. Deleting association from both category and menu item works. Simple unpublishing/moving to trash does not work (still generates garbage hreflang and language switcher flag link). |
I can't reproduce your issue. Testing on 3.8.4. |
Did you try to unpublish/delete item with default site language and navigate to associated item in another language? |
Yes, for menu items, but see further as your case looks different. Then, in frontend, I display Catégories(fr) As home pages are associated by default I do get the hreflang there But I found an error when there is no specific menu item and an associated category is unpublished. In that case I evidently get a 404 for the unpublished category and its articles when switching via the module (IN 3.8.4. This will be corrected in 3.8.5 by #19512 , BUT also a wrong hreflang when I display Catégorie (fr-fr)
After merging #19512 I will get the same you had , i.e.
Therefore I confirm the bug for hreflang |
@andrepereiradasilva |
@infograf768, thanks for investigation. |
I am working on a patch. |
Please test #19551 Closing as we have a PR |
@ethernidee |
Steps to reproduce the issue
Have a multi-lingual installation with language filter installed and enabled
Install custom component
Create 2 menus for each language
Create a menu item for the component in each menu and set the appropriate language for the menu items
Associated the menu items of the two languages
Expected result
Alternate links are generated in the header of the page such as:
<link href="http://example.com/es/my-page" rel="alternate" hreflang="es" />
Actual result
These links are missing for the different languages
System information (as much as possible)
Joomla! 3.6.5 Stable
Additional comments
The hreflang links are generated fine for normal article pages.
The text was updated successfully, but these errors were encountered: