Removing unnecessary code from com_search router #12482
The code that is being removed does nothing. Literally. It acts on an empty array... I was thinking about removing much of the code in parse(), too, but while Joomla itself does not create such URLs, you could hand in the searchword as a first segment and that worked in the past, so we will have to keep that in until at least 4.0...
I have tested this item
Removed code does not change anything
Comparing the results of the test (step 1-3 and 5-7), there is no difference. The usual search as well as SEF URLs still work. The removed code does not affect anything since $segments is always an empty array.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12482.