User tests: Successful: Unsuccessful:
Pull Request for Issue #30968.
When indexing categories, we need to have a route to those categories. If there is no (valid) route, we can't generate a URL to the search results source. Simply falling back to the RouteHelper of com_content is definitely wrong.
index.php?option=com_finder&view=search
.You will see an entry with ID 7. Clicking on the link will give a 404. If you look in the database, the category with ID 7 belongs to the component com_users.
After clearing the index and indexing again, there is no result with ID 7 anymore.
None.
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
I found this a bit too confusing to decide if my test passed. I already had a multi-lingual site with some test articles, categories, contacts and so on. I installed the Test Data and cleared and reindexed without the patch. That gave me five search results. None gave 404 links but all had the title Uncategised, which was not helpful:
With the patch and the index cleared and reindexed I got three results:
That looks better. But is it a pass?
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
?
|
Tested successfully
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-10-17 10:55:41 |
Closed_By | ⇒ | wilsonge | |
Labels |
Thanks!
This won't work with 3rd party extensions. Maybe use
Joomla\CMS\Helper\RouteHelper
?