Skip to content

Structured data broken by amphtml link relation in AMP-to-AMP linking #6599

Closed
@milindmore22

Description

@milindmore22

Bug Description

In a recent support topic, we found out that BreadCrumbList schema (RDFa) doesn't allow rel="amphtml" attributes and marks structured data as invalid, As per discussion on slack Weston suggested we don't need it.

Example HTML Snippet :

<div class="breadcrumb" typeof="BreadcrumbList" vocab="https://schema.org/">
	<span property="itemListElement" typeof="ListItem">
	    <a property="item" typeof="WebPage" title="Go to Visitor Guard®." href="https://www.example.com?amp" class="home" rel="amphtml">
	        <span property="name">
	            Home
	        </span>
	   </a>
	<meta property="position" content="1">
	</span>
	<span class="post post-page current-item">
	    The Page Title
	 </span>
</div>

Tests :

  1. Invalid Test
  2. Valid Test

Expected Behaviour

The page links should be served without "rel="amphtml" attributes.

Steps to reproduce

  1. Install and activate BreadCrumb Navxt Plugin
  2. Add Breadcrumb to your site
  3. Check the Structured Data on https://search.google.com/test/rich-results
  4. See error

Additional context

  • WordPress version: 5.8.1
  • Plugin version: 2.1.4
  • Gutenberg plugin version (if applicable):
  • AMP plugin template mode: Transional Mode / Reader Mode
  • PHP version: 7.4
  • OS: Mac
  • Browser: chrome, safari
  • Device: Macbook Air

Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation brief

QA testing instructions

Demo

Changelog entry

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingChangeloggedWhether the issue/PR has been added to release notes.P1Medium prioritySchema.org Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions