No Code Attached Yet
avatar brianteeman
brianteeman
7 Sep 2021

Search module has two itemid

Steps to reproduce the issue PART 1

Create a smart search module. Do not create a search menu item or set an ItemID in the module
image

Then visit the front end and perform a search with the module

Expected result

The url is example.com/component/finder/search?q=&Itemid=101

where 101 is the id of the default home page

or even better example.com/component/finder/search?q=

Actual result

The url is example.com/component/finder/search?q=&Itemid=101&Itemid=101
Only the first of the two itemid is used

Steps to reproduce the issue PART 2

Repeat the test but this time add a search menu item or set an ItemID in the module

Then visit the front end and perform a search with the module

Expected result

The url is example.com/component/finder/search?q=&Itemid=xxx
where xxx is the id of the search menu item or the id of the menu item selected in the module

Actual result

The url is example.com/component/finder/search?q=&Itemid=101&Itemid=xxx
where xxx is the id of the search menu item or the id of the menu item selected in the module
where 101 is the id of the default home page

Only the first of the two itemid is used

avatar brianteeman brianteeman - open - 7 Sep 2021
avatar joomla-cms-bot joomla-cms-bot - change - 7 Sep 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 7 Sep 2021
avatar brianteeman brianteeman - change - 7 Sep 2021
The description was changed
avatar brianteeman brianteeman - edited - 7 Sep 2021
avatar richard67
richard67 - comment - 26 Dec 2021

Closing as having a pull request. Please test #36426 . Thanks in advance.

avatar richard67 richard67 - change - 26 Dec 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-12-26 23:59:40
Closed_By richard67
avatar richard67 richard67 - close - 26 Dec 2021

Add a Comment

Login with GitHub to post a comment