Go to an article page in Joomla 4.1.2 and test the printed data of the module. Test the data with https://search.google.com/test/rich-results
The expectation would be that it has no faults.
At the moment - at least for me - the link of the current page is not output as a structured page.
Joomla 4.1.2
Linux Server
Perhaps it is a consequential error. The fact is simply that the function "Uri::getInstance()" outputs an empty string. That's why I replaced the following line as a workaround.
old: '@id' => $item->link ? Route::($item->link, true, Route::TLS_IGNORE, true) : Route::(Uri::getInstance())
new: '@id' => $item->link ? Route::($item->link, true, Route::TLS_IGNORE, true) : Route::($_SERVER['REQUEST_URI']),
Now it works correctly again. I wanted to share this hint simply because I am not sure if this might be a bug. Thank you for your work!
Labels |
Added:
No Code Attached Yet
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-05-09 09:48:39 |
Closed_By | ⇒ | Gratia-Mira |
Yes, it is the same issue.
Yes, this solution also works! But in that case, I guess I'll stick with my solution for my template because it's both simple and provides a link for the last object.
Thanks for the answers!
can you check if this #37679 solve the issue please?