You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(to create a redirect for a search term, go to Magento Back-Office and then Marketing > Search Terms. Pick one search term, and then add your redirect and save it).
The tracking mechanism is not triggered when a Redirect is created for a search term.
This is due to the fact, that, in case of a redirect, we never reach the search result page.
We should probably add a plugin on the search result controller : https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/CatalogSearch/Controller/Result/Index.php#L80
Most probably, we should reuse this one : https://github.com/Smile-SA/elasticsuite/blob/2.11.x/src/module-elasticsuite-catalog/Plugin/CatalogSearch/ResultPlugin.php#L114
And check
if ($this->getResponse()->getRedirect())
we then have to fire a new event like the "smile_elasticsuite_redirect_if_one_result" but this time it will be "smile_elasticsuite_redirect_search_term" and then, we have to implement the event collecting in PHP, like for the "one result redirect" : https://github.com/Smile-SA/elasticsuite/blob/2.11.x/src/module-elasticsuite-tracker/Observer/TrackRedirectIfOneResult.phpThe text was updated successfully, but these errors were encountered: