bug PR-5.3-dev Pending

User tests: Successful: Unsuccessful:

avatar bembelimen
bembelimen
14 Jul 2025

Alternative for #45316

Summary of Changes

This PR is a alternative fix for #45277 where the connection is improved instead of deleted.

Testing Instructions

  1. Apply patch
  2. Activate a breadcrumb module either on "none" or a non-existing position on your site

Actual result BEFORE applying this Pull Request

  • Google reports invalid JSON-data

Expected result AFTER applying this Pull Request

  • JSON data is valid

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar bembelimen bembelimen - open - 14 Jul 2025
avatar bembelimen bembelimen - change - 14 Jul 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Jul 2025
Category Front End Plugins
avatar bembelimen bembelimen - change - 14 Jul 2025
Labels Added: bug PR-5.3-dev
avatar HLeithner HLeithner - test_item - 15 Jul 2025 - Tested unsuccessfully
avatar HLeithner
HLeithner - comment - 15 Jul 2025

I have tested this item 🔴 unsuccessfully on 5715410

Using this PR removes the link to the breadcrumbs json+ld entry if your template uses dynamic module positions which are not listed in the xml. Which removes the entry on my site because I use the breadcrumbs position from cassiopeia without defining it my self.


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

avatar joomla-cms-bot joomla-cms-bot - change - 16 Jul 2025
Category Front End Plugins Modules Front End Plugins
avatar HLeithner
HLeithner - comment - 16 Jul 2025

I modified this PR, so it checks if the mod_breadcrumbs (which actually has a wrong spelling, should be without s) has injected the BreadcrumbList ld+json schema into the webasset manager and take the id from this json.

Also I renamed the webasset name since it's bind to the module which actually only one breadcrumb should be allowed on the page for ld+json and not only be filled by our module, also 3rd party should be allowed to add a breadcrumb schema and be linked in the schemaorg plugin.

As b/c fall back the old module asset name is also checked, the reason for this is that the ld+json schema is created in the layout of the module and can be overridden. Which is the wrong place but this is another story and should be fixed in another PR.

982cdc3 16 Jul 2025 avatar HLeithner cs
avatar HLeithner HLeithner - test_item - 17 Jul 2025 - Tested successfully
avatar HLeithner
HLeithner - comment - 17 Jul 2025

I have tested this item ✅ successfully on 982cdc3

Now it works for me.


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

avatar richard67 richard67 - alter_testresult - 17 Jul 2025 - HLeithner: Tested successfully
avatar chmst
chmst - comment - 17 Jul 2025

The renaming from mod_breadcrums to mod_breadcrumb is not everywhere. Only in comment and message text, no consequeces for the code, but should be consistent.

avatar chmst chmst - test_item - 31 Jul 2025 - Tested successfully
avatar chmst
chmst - comment - 31 Jul 2025

I have tested this item ✅ successfully on ee1b5ea


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

avatar RickR2H
RickR2H - comment - 31 Jul 2025

@bembelimen How can I reproduce the error to verify the patch?

avatar bembelimen
bembelimen - comment - 1 Aug 2025

Thanks @RickR2H for your interest. The most easiest part is to have an active breadcrumbs module where the position is set to "none", then Google complains with a invalid reference (see other pr/issue).

avatar RickR2H
RickR2H - comment - 1 Aug 2025

Ho do I make Google complain. Is the module is set to position none, will there be any output?

avatar bembelimen
bembelimen - comment - 5 Aug 2025

Ho do I make Google complain. Is the module is set to position none, will there be any output?

Every JSON+LD entry from Joomla! has an unique ID. You can observe the error, if you check the source code of the web page. You'll see two JSON+LD (if breadcrumbs are visible) while the main one is refering to the breadcrumb one.

If breadcrumbs are not generated (or two are available) you'll see that the referenced ID is wrong,

avatar bembelimen bembelimen - change - 10 Aug 2025
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-08-10 16:04:03
Closed_By bembelimen
avatar bembelimen bembelimen - close - 10 Aug 2025
avatar bembelimen bembelimen - merge - 10 Aug 2025

Add a Comment

Login with GitHub to post a comment