No Code Attached Yet
avatar Gratia-Mira
Gratia-Mira
9 May 2022

Steps to reproduce the issue

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

Expected result

The expectation would be that it has no faults.

Actual result

At the moment - at least for me - the link of the current page is not output as a structured page.

System information (as much as possible)

Joomla 4.1.2
Linux Server

Additional comments

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!

avatar Gratia-Mira Gratia-Mira - open - 9 May 2022
avatar joomla-cms-bot joomla-cms-bot - change - 9 May 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 9 May 2022
avatar alikon
alikon - comment - 9 May 2022

can you check if this #37679 solve the issue please?

avatar drmenzelit
drmenzelit - comment - 9 May 2022

Probably duplicated from #37510 and #37508

avatar Gratia-Mira Gratia-Mira - change - 9 May 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-05-09 09:48:39
Closed_By Gratia-Mira
avatar Gratia-Mira Gratia-Mira - close - 9 May 2022
avatar Gratia-Mira
Gratia-Mira - comment - 9 May 2022

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!

Add a Comment

Login with GitHub to post a comment