? ? Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
10 Oct 2020

Pull Request for Issue #30968.

Summary of Changes

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.

Testing Instructions

  1. After installation insert the Blog Sampledata.
  2. Go to Smart Search and click "indexing".
  3. Search in the frontend for "Uncategorised" by visiting index.php?option=com_finder&view=search.

Actual result BEFORE applying this Pull Request

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.

Expected result AFTER applying this Pull Request

After clearing the index and indexing again, there is no result with ID 7 anymore.

Documentation Changes Required

None.

avatar Hackwar Hackwar - open - 10 Oct 2020
avatar Hackwar Hackwar - change - 10 Oct 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 Oct 2020
Category Front End Plugins
avatar SharkyKZ
SharkyKZ - comment - 10 Oct 2020

This won't work with 3rd party extensions. Maybe use Joomla\CMS\Helper\RouteHelper?

avatar ceford
ceford - comment - 11 Oct 2020

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:

  1. Animals article (uncategorised)
  2. Home page
  3. Uncategorised contact list
  4. Uncategorised Newsfeeds - none
  5. Home page

With the patch and the index cleared and reindexed I got three results:

  1. Animals article (uncategorised)
  2. Uncategorised contact list
  3. Uncategorised Newsfeeds - none

That looks better. But is it a pass?


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

avatar gostn gostn - test_item - 11 Oct 2020 - Tested successfully
avatar gostn
gostn - comment - 11 Oct 2020

I have tested this item successfully on 1bd2c3f


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

avatar tushar33 tushar33 - test_item - 17 Oct 2020 - Tested successfully
avatar tushar33
tushar33 - comment - 17 Oct 2020

I have tested this item successfully on 1bd2c3f


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

avatar richard67 richard67 - change - 17 Oct 2020
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 17 Oct 2020

RTC


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

avatar richard67 richard67 - change - 17 Oct 2020
Labels Added: ? ?
avatar ChrisHoefliger
ChrisHoefliger - comment - 17 Oct 2020

Tested successfully

avatar wilsonge wilsonge - close - 17 Oct 2020
avatar wilsonge wilsonge - merge - 17 Oct 2020
avatar wilsonge wilsonge - change - 17 Oct 2020
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
avatar wilsonge
wilsonge - comment - 17 Oct 2020

Thanks!

Add a Comment

Login with GitHub to post a comment