Search results should always work without filter if no filter is assigned to the menu item.
Search results do not work without filter if you did another search with filter previously.
Joomla 4.4.3, PHP 8.1
A fix would be to delete the "f" variable in the query string if no filter is assigned to the search menu item:
components\com_finder\src\Helper\RouteHelper.php
public static function getSearchRoute($f = null, $q = null) {
...
// Add the pre-defined search filter if present.
if ($f !== null) {
$uri->setVar('f', $f);
}
// MY CODE ADDITION
else {
$uri->delVar('f');
}
// END OF MY CODE ADDITION
...
}
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
bug
|
Labels |
Added:
Information Required
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-11-21 07:36:39 |
Closed_By | ⇒ | Hackwar |
Since there was no response, I'm closing this one.
Please check if this is solved in joomla 5 and maybe also with #44055.