No Code Attached Yet bug
avatar walturbo
walturbo
14 May 2025

Steps to reproduce the issue

  • Enable the Schemaorg plugin.
  • Create an article category, Category1;
  • Create a new articles, Article1, highlight it and put it in Category1;
  • In the Home menu enable "only highlight articles";
  • Create a new module breadcrumb, Breadcrumb1 and assign the banner position. This module have ID:17;
  • Create a new module breadcrumb, Breadcrumb2 and assign the breadcrumbs position. This module have ID:110;

Image

Expected result

Image

In the first script there is a breadcrumb with ID 17. In the second script in the breadcrumb section the ID of the first is correctly called.

<script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","@id":"http://localhost/joomla-pulita/#/schema/BreadcrumbList/17","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"http://localhost/joomla-pulita/","name":"Home"}},{"@type":"ListItem","position":2,"item":{"@id":"http://localhost/joomla-pulita/component/content/category/category1","name":"Category1"}},{"@type":"ListItem","position":3,"item":{"name":"Article1"}}]}</script>

<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"http://localhost/joomla-pulita/#/schema/Organization/base","name":"Joomla Test","url":"http://localhost/joomla-pulita/"},{"@type":"WebSite","@id":"http://localhost/joomla-pulita/#/schema/WebSite/base","url":"http://localhost/joomla-pulita/","name":"Joomla Test","publisher":{"@id":"http://localhost/joomla-pulita/#/schema/Organization/base"}},{"@type":"WebPage","@id":"http://localhost/joomla-pulita/#/schema/WebPage/base","url":"http://localhost/joomla-pulita/component/content/article/article1?catid=2","name":"Article1","isPartOf":{"@id":"http://localhost/joomla-pulita/#/schema/WebSite/base"},"about":{"@id":"http://localhost/joomla-pulita/#/schema/Organization/base"},"inLanguage":"it-IT","breadcrumb":{"@id":"http://localhost/joomla-pulita/#/schema/BreadcrumbList/17"}},{"@type":"Article","@id":"http://localhost/joomla-pulita/#/schema/com_content/article/1","name":"Article1","headline":"Article1","inLanguage":"it-IT","author":{"@type":"Person","name":"Walturbo"},"articleSection":"Category1","dateCreated":"2025-05-12T09:49:28+00:00","interactionStatistic":{"@type":"InteractionCounter","userInteractionCount":33},"isPartOf":{"@id":"http://localhost/joomla-pulita/#/schema/WebPage/base"}}]}</script>

http://localhost/joomla-pulita/#/schema/BreadcrumbList/17 must be identical in both scripts otherwise the guidelines are not respected and the snippet is incorrect.

Actual result

The breadcrumb ID of the first and second script are not identical, the first one contains the ID 100 while the second one contains the ID 17. This also generates an error on Google Search Console, that markout will not be shown in the search results.

This is test on GSC: https://search.google.com/test/rich-results/result?id=ri7p2TnjVBXXhFJJzLcdVQ

<script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","@id":"http://localhost/joomla-pulita/#/schema/BreadcrumbList/110","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"http://localhost/joomla-pulita/","name":"Home"}},{"@type":"ListItem","position":2,"item":{"@id":"http://localhost/joomla-pulita/component/content/category/category1","name":"Category1"}},{"@type":"ListItem","position":3,"item":{"name":"Article1"}}]}</script>

<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"http://localhost/joomla-pulita/#/schema/Organization/base","name":"Joomla Test","url":"http://localhost/joomla-pulita/"},{"@type":"WebSite","@id":"http://localhost/joomla-pulita/#/schema/WebSite/base","url":"http://localhost/joomla-pulita/","name":"Joomla Test","publisher":{"@id":"http://localhost/joomla-pulita/#/schema/Organization/base"}},{"@type":"WebPage","@id":"http://localhost/joomla-pulita/#/schema/WebPage/base","url":"http://localhost/joomla-pulita/component/content/article/article1?catid=2","name":"Article1","isPartOf":{"@id":"http://localhost/joomla-pulita/#/schema/WebSite/base"},"about":{"@id":"http://localhost/joomla-pulita/#/schema/Organization/base"},"inLanguage":"it-IT","breadcrumb":{"@id":"http://localhost/joomla-pulita/#/schema/BreadcrumbList/17"}},{"@type":"Article","@id":"http://localhost/joomla-pulita/#/schema/com_content/article/1","name":"Article1","headline":"Article1","inLanguage":"it-IT","author":{"@type":"Person","name":"Walturbo"},"articleSection":"Category1","dateCreated":"2025-05-12T09:49:28+00:00","interactionStatistic":{"@type":"InteractionCounter","userInteractionCount":33},"isPartOf":{"@id":"http://localhost/joomla-pulita/#/schema/WebPage/base"}}]}</script>

System information (as much as possible)

  • Joomla 5.3
  • PHP 8.3.20
  • MySQLi 10.6.20-MariaDB-cll-lve
  • Multilanguage ON
  • Cassiopeia

Additional comments

If I disable the module with ID 110 everything goes back to normal.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar walturbo walturbo - open - 14 May 2025
avatar joomla-cms-bot joomla-cms-bot - change - 14 May 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 May 2025
avatar chmst
chmst - comment - 16 May 2025

Why do you want to have two breadcrumb modules on one site?

avatar walturbo
walturbo - comment - 16 May 2025

I don't want to have two modules on the site, it was a coincidence that I noticed this problem because I was changing templates on the online site and GSC reported this conflict to me.
During the template change, which I had done only on some pages while on others I would do it later, I had the two path modules enabled in different positions, even though only one position was present on each template. So I went deeper and discovered this problem.
However, I have seen sites with the path at the top of very long articles and also at the end, so two different positions... and in that case this incorrect ID problem could occur.

avatar chmst chmst - change - 19 May 2025
Labels Added: bug
avatar chmst chmst - labeled - 19 May 2025
avatar PavelSaik
PavelSaik - comment - 3 Jun 2025

I have the same problem. But it is strange that breadcrumb markup appears by itself. Let this micro markup be in the breadcrumb module.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45476.

Add a Comment

Login with GitHub to post a comment