L
L
lexstile2020-01-14 11:47:56
Network administration
lexstile, 2020-01-14 11:47:56

Breadcrumb markup without circular references?

We take from site example:

<ol itemscope itemtype="http://schema.org/BreadcrumbList">
  <li itemprop="itemListElement" itemscope
      itemtype="http://schema.org/ListItem">
    <a itemprop="item" href="https://example.com/dresses">
    <span itemprop="name">Dresses</span></a>
    <meta itemprop="position" content="1" />
  </li>
  <li itemprop="itemListElement" itemscope
      itemtype="http://schema.org/ListItem">
    <a itemprop="item" href="https://example.com/dresses/real">
    <span itemprop="name">Real Dresses</span></a>
    <meta itemprop="position" content="2" />
  </li>
</ol>

In this case, a cyclic reference is obtained from the second itemListElement.
If I remove the link or replace it with a meta tag, I get an error: Invalid URL specified for id ( google ).
Moreover, in Yandex, validation without a link passes.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Mikhail Lyalin, 2019-03-29
@mr_jok

in the simplest case = contacting the hoster's support service

R
ReActor Dmitry Vershansky, 2019-03-29
@HunteR-VRX

create a .htaccess file in the root of the site, write the following in it:
# encoding Apache in UTF-8
AddDefaultCharset UTF-8

N
Notan Royamov, 2020-01-14
@lexstile

<ol itemscope itemtype="http://schema.org/BreadcrumbList">
  <li itemprop="itemListElement" itemscope
      itemtype="http://schema.org/ListItem">
    <a itemprop="item" href="https://example.com/dresses">
    <span itemprop="name">Dresses</span></a>
    <meta itemprop="position" content="1" />
  </li>
  <li>Real Dresses</li>
</ol>

Everything ingenious is simple :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question