[Skip to main content](#vessel-content)

#   Joomla site search applying arbitrary menu item id to search result URLs

##

- **[elevology](/forum/user/30211-elevology "View elevology's Profile")**
- [![elevology's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30211-elevology "View elevology's Profile") Topic Author
- [ Offline](/forum/user/30211-elevology)

Less More

- Posts: 11
- Thank you received: 0
-
-

6 years 8 months ago [\#316247](#316247) by [elevology](/forum/user/30211-elevology "View elevology's Profile")  *[Joomla site search applying arbitrary menu item id to search result URLs](/forum/26-product-category-display/899288-joomla-site-search-applying-arbitrary-menu-item-id-to-search-result-urls#316247 "-- url of the page with the problem -- :   enconsafety.com/index.php?option=com&#95;hik...9&amp;Itemid=129&amp;lang=en  -- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.15 -- PHP version -- : 7.2.22 -- Browser(s) name and version -- : firefox -- Error-message(debug-mod must be tuned on) -- : no error message, transitive problem  Hello,  The joomla site search on our site is applying a menu item id for hikashop categories, one that we didn't create (was created on install) and one that we don't care about. We have menu items for each of our relevant hikashop categories and I'd like the site search to pull these menu item ids so that I get my desired display.  Example Top menu bar right side there's a search bar, type veratti. wait for the ajax to return search results in a drop down. Select veratti tango.  This is the page that displays:   enconsafety.com/index.php?option=com&#95;hik...9&amp;Itemid=129&amp;lang=en  If we could control this menu item id in the URL we could make the page layout look like this:   enconsafety.com/index.php?option=com&#95;hik...g&amp;Itemid=187&amp;lang=en")* was created by *[elevology](/forum/user/30211-elevology "View elevology's Profile")*

-- url of the page with the problem -- : [ enconsafety.com/index.php?option=com\_hik...9&amp;Itemid=129&amp;lang=en](https://enconsafety.com/index.php?option=com_hikashop&ctrl=category&task=listing&name=veratti%C2%AE-tango%E2%84%A2&cid=129&Itemid=129&lang=en)
-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.15
-- PHP version -- : 7.2.22
-- Browser(s) name and version -- : firefox
-- Error-message(debug-mod must be tuned on) -- : no error message, transitive problem

Hello,

The joomla site search on our site is applying a menu item id for hikashop categories, one that we didn't create (was created on install) and one that we don't care about. We have menu items for each of our relevant hikashop categories and I'd like the site search to pull these menu item ids so that I get my desired display.

Example
Top menu bar right side there's a search bar, type veratti. wait for the ajax to return search results in a drop down. Select veratti tango.

This is the page that displays:
[ enconsafety.com/index.php?option=com\_hik...9&amp;Itemid=129&amp;lang=en](https://enconsafety.com/index.php?option=com_hikashop&ctrl=category&task=listing&name=veratti%C2%AE-tango%E2%84%A2&cid=129&Itemid=129&lang=en)

If we could control this menu item id in the URL we could make the page layout look like this: [ enconsafety.com/index.php?option=com\_hik...g&amp;Itemid=187&amp;lang=en](https://enconsafety.com/index.php?option=com_hikashop&view=category&layout=listing&Itemid=187&lang=en)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTkyODgtam9vbWxhLXNpdGUtc2VhcmNoLWFwcGx5aW5nLWFyYml0cmFyeS1tZW51LWl0ZW0taWQtdG8tc2VhcmNoLXJlc3VsdC11cmxzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

6 years 8 months ago [\#316250](#316250) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Joomla site search applying arbitrary menu item id to search result URLs](/forum/26-product-category-display/899288-joomla-site-search-applying-arbitrary-menu-item-id-to-search-result-urls#316250 "-- url of the page with the problem -- :   enconsafety.com/index.php?option=com&#95;hik...9&amp;Itemid=129&amp;lang=en  -- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.15 -- PHP version -- : 7.2.22 -- Browser(s) name and version -- : firefox -- Error-message(debug-mod must be tuned on) -- : no error message, transitive problem  Hello,  The joomla site search on our site is applying a menu item id for hikashop categories, one that we didn't create (was created on install) and one that we don't care about. We have menu items for each of our relevant hikashop categories and I'd like the site search to pull these menu item ids so that I get my desired display.  Example Top menu bar right side there's a search bar, type veratti. wait for the ajax to return search results in a drop down. Select veratti tango.  This is the page that displays:   enconsafety.com/index.php?option=com&#95;hik...9&amp;Itemid=129&amp;lang=en  If we could control this menu item id in the URL we could make the page layout look like this:   enconsafety.com/index.php?option=com&#95;hik...g&amp;Itemid=187&amp;lang=en")*

Hi,

If you edit the settings of the HikaShop Categories/Products search plugins via the Joomla plugins manager, you'll see a "itemid" setting where you can enter the id of the menu item you want for the results displayed by the Joomla search that the plugin founds.
Now this means that all the categories will get the same item id.
If you want a different one for each category, then you would have to make sure you filled in the "canonical URL" of your categories with the URL you want for each one, and then you can activate the "force canonical URL on listings" setting of the HikaShop configuration. In that case, the search results will use the canonical URL of the categories/products instead of generating one.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTkyODgtam9vbWxhLXNpdGUtc2VhcmNoLWFwcGx5aW5nLWFyYml0cmFyeS1tZW51LWl0ZW0taWQtdG8tc2VhcmNoLXJlc3VsdC11cmxzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
