Magento 2 – Custom route is redirect to catalogsearch

In Magento 2, I defined routes for a custom module like this : <?xml version=”1.0″ ?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:App/etc/routes.xsd”> <router id=”standard”> <route frontName=”myroute” id=”myroute”> <module name=”Vendor_ModuleName”/> </route> </router> </config> But when I enter : https://mywebsite.com/myroute I am redirected to : https://mywebsite.com/catalogsearch/result/?q=myroute&amnoroute Do you have any idea to solve this problem ?

Magento2 Ui Component not rendering second parameter from URL while using ResourceModel collection

Here I am passing two params in URL “store_id” and “careg”. But “careg” parameter not rendering in resourcemodel collection. <argument name=”data” xsi:type=”array”> <item name=”config” xsi:type=”array”> <item name=”component” xsi:type=”string”>Magento_Ui/js/grid/provider</item> <item name=”update_url” xsi:type=”url” path=”mui/index/render”/> <item name=”filter_url_params” xsi:type=”array”> <item name=”store_id” xsi:type=”string”>*</item> <item name=”careg” xsi:type=”string”>*</item> </item> <item name=”storageConfig” xsi:type=”array”> <item name=”indexField” xsi:type=”string”>id</item> </item> </item> </argument>

Programmatically stop a catalog search after it’s been started in Magento 2.3.3

I’m using an observer on the event “controller_action_postdispatch_catalogsearch_result_index” to redirect the user to a landing page if their search query matches one of a number of specific phrases exactly. This works as intended except that if a phrase is matched and the user redirected, the search query continues to run in the background even though…

Magento 2 :- Date Rang Filter modification in UI components

I used below code to display the delivery date now i want to call my custom file to filter the admin side grid section in sales order grid section. <?xml version=”1.0″ encoding=”UTF-8″?> <listing xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Ui:etc/ui_configuration.xsd”> <columns name=”sales_order_columns”> <column name=”delivery_date” class=”Magento\Ui\Component\Listing\Columns\Date”> <argument name=”data” xsi:type=”array”> <item name=”config” xsi:type=”array”> <item name=”visible” xsi:type=”boolean”>false</item> <item name=”filter” xsi:type=”string”>dateRange</item> <item name=”component” xsi:type=”string”>Magento_Ui/js/grid/columns/date</item>…