Skip to content
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

Add microdata to <nav> #140

Merged
merged 1 commit into from Jan 26, 2018
Merged

Add microdata to <nav> #140

merged 1 commit into from Jan 26, 2018

Conversation

CMSworker
Copy link
Contributor

@CMSworker CMSworker commented Oct 16, 2017

The default navigation list template 'nav_default.html5' of Contao is adding microdata to the list items (itemprop url and itemprop name).

Currently these Microdata inside the language links are hierarchically connected with the itemtype "WebPage" of the < body > element. This is wrong, because now all language links are interpreted as names and urls of the document itself. You can check this wrong connection and behaviour when testing any Contao site with installed ChangeLanguage in the microdata testing tool at https://search.google.com/structured-data/testing-tool

This PR is adding the correct itemtype "SiteNavigationElement" to the wrapping < nav > Element of the language links to correct the wrong connection to the body itemtype.

The default navigation list template 'nav_default.html5' of Contao is adding microdata to the list items (itemprop url and itemprop name).

Currently these Microdata inside the language links are hierarchically connected with the itemtype "WebPage" of the <body> element. This is wrong, because now all language links are interpreted as names and urls of the document itself. You can check this wrong connection and behaviour when testing any Contao site with installed ChangeLanguage in the microdata testing tool at https://search.google.com/structured-data/testing-tool

This PR is adding the correct itemtype "SiteNavigationElement" to the wrapping <nav> Element of the language links to correct the wrong connection to the body itemtype.
@aschempp aschempp added this to the 3.1.8 milestone Jan 26, 2018
@aschempp aschempp added the bug label Jan 26, 2018
@aschempp aschempp merged commit d619a03 into terminal42:master Jan 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants