No Code Attached Yet
avatar nadjak77
nadjak77
7 Apr 2022

Steps to reproduce the issue

modul breadcrumbs
works fine if the article has a menu point
but if the article is in a blog, the id for the last item is missing.

Expected result

id in last element is for all articles set, not only if there is a menu point for this article.

Actual result

structure data is not valid for articles without a menu point (f.e. blogs, or featured articles)

System information (as much as possible)

Joomla 4.1

Additional comments

Votes

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

avatar nadjak77 nadjak77 - open - 7 Apr 2022
avatar joomla-cms-bot joomla-cms-bot - change - 7 Apr 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 7 Apr 2022
avatar chmst
chmst - comment - 7 Apr 2022

Related for J3
#27151

avatar drmenzelit
drmenzelit - comment - 7 Apr 2022

Confirmed
That is how the json structured data look like when you are on an article in a blog layout
<script type="application/ld+json" nonce="Yzk4MzI3ZmVmOWFmMzFhODc2ZTc1NTYzMzExNzFiOGRkOWRmODdiNmE2YWJkNGYxMTY2ZjhjMmZjMDI5ZTU3NTkzNjFlODUyODkwZWM5OWQ5ZmFiMTc0ZTY3Y2ZjMzM5ZjkwZGY0ZGFiMzYxZDZmYTlkMTIyMTYwNjk2N2I4NDY=">{"@context":"https:\/\/schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"http:\/\/localhost\/test4\/en\/","name":"Home"}},{"@type":"ListItem","position":2,"item":{"@id":"http:\/\/localhost\/test4\/en\/denkmalobjekte","name":"Denkmalobjekte"}},{"@type":"ListItem","position":3,"item":{"@id":{},"name":"Klosterkirche mit Resten der Klostermauer"}}]}</script>

The last element has an empty @id (the link is missing)

The test for structured data report an error

avatar richard67 richard67 - change - 27 Apr 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-04-27 12:36:26
Closed_By richard67
avatar richard67 richard67 - close - 27 Apr 2022
avatar richard67
richard67 - comment - 27 Apr 2022

Closing as having a pull request. Please test #37679 . Thanks in advance.

Add a Comment

Login with GitHub to post a comment