RTC bug PR-5.2-dev Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
11 Sep 2024

Summary of Changes

When creating a Smart Search menu item with a filter, the ID of the filter is displayed in the URL after the search has been submitted. This PR refactors the router to remove the unnecessary parameter.

Testing Instructions

  • Have something to search for in your Joomla installation, for example the testing sampledata.
  • Create a filter for Smart Search with some stuff selected.
  • Create a menu item for the Smart Search search view and select the filter in it.
  • Go to the menu item in the frontend and search for something random.

Actual result BEFORE applying this Pull Request

The URL contains a query element like &f=2.

Expected result AFTER applying this Pull Request

The URL does not contain the &f= query element.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar Hackwar Hackwar - open - 11 Sep 2024
avatar Hackwar Hackwar - change - 11 Sep 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 11 Sep 2024
Category Front End com_finder
avatar fgsw fgsw - test_item - 12 Sep 2024 - Tested successfully
avatar fgsw
fgsw - comment - 12 Sep 2024

I have tested this item ✅ successfully on cf51a65


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

avatar fgsw fgsw - test_item - 12 Sep 2024 - Not tested
avatar fgsw
fgsw - comment - 12 Sep 2024

I have not tested this item.

Saw to late the red marked information /Applications/MAMP/htdocs/components/com_finder/src/Service/Router.php on line 69 /index.php/en/search?f=1&q=joomla" method="get" role="search"> above the search module:
Untitled


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44055.
178d33d 12 Sep 2024 avatar Hackwar Fix
avatar Hackwar Hackwar - change - 12 Sep 2024
Labels Added: bug PR-5.2-dev
avatar fgsw
fgsw - comment - 13 Sep 2024

@Hackwar Same result /Applications/MAMP/htdocs/components/com_finder/src/Service/Router.php on line 69 /index.php/en/search?f=1&q=joomla" method="get" role="search">

avatar uglyeoin
uglyeoin - comment - 8 Oct 2024

@Hackwar I'm here if you need a test on any update.

avatar dautrich dautrich - test_item - 28 Nov 2024 - Tested successfully
avatar dautrich
dautrich - comment - 28 Nov 2024

I have tested this item ✅ successfully on 178d33d


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

avatar fgsw
fgsw - comment - 28 Nov 2024

@dautrich You didn't get information mentioned in #44055 (comment)?

avatar dautrich
dautrich - comment - 28 Nov 2024

@fgsw No, everything looked perfect. The display was identical with and without the patch. Only the URL changed.

avatar viocassel viocassel - test_item - 29 Nov 2024 - Tested successfully
avatar viocassel
viocassel - comment - 29 Nov 2024

I have tested this item ✅ successfully on 178d33d


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

avatar Quy Quy - change - 29 Nov 2024
Status Pending Ready to Commit
avatar Quy
Quy - comment - 29 Nov 2024

RTC


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

avatar pe7er
pe7er - comment - 2 Dec 2024

I encountered the same issue as fgsw.
Tested with PHP 8.2, Joomla 5.2.2, after adding this PR, I get:

Warning: Undefined array key "f" in /usr/local/apache2/htdocs/components/com_finder/src/Service/Router.php on line 69
/index.php/search?f=2&q=templates" method="get" role="search">

Screenshot from 2024-12-02 15-32-50

avatar Hackwar
Hackwar - comment - 16 Jan 2025

I modified this. Can you please test again?

avatar dautrich dautrich - test_item - 16 Jan 2025 - Tested successfully
avatar dautrich
dautrich - comment - 16 Jan 2025

I have tested this item ✅ successfully on 6ba7068

Test using Patchtester on copy of real site.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44055.
avatar fgsw fgsw - test_item - 16 Jan 2025 - Tested successfully
avatar fgsw
fgsw - comment - 16 Jan 2025

I have tested this item ✅ successfully on 6ba7068

Test by using Prebuilt update package.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44055.
avatar Hackwar Hackwar - change - 16 Jan 2025
Labels Added: RTC
avatar richard67 richard67 - change - 18 Jan 2025
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-01-18 10:36:46
Closed_By richard67
avatar richard67 richard67 - close - 18 Jan 2025
avatar richard67 richard67 - merge - 18 Jan 2025
avatar richard67
richard67 - comment - 18 Jan 2025

Thanks all.

Add a Comment

Login with GitHub to post a comment