janpetr / algoliasearch-magento2-one-result-redirect
Magento 2 module to redirect to the product, when there is only one in a results
Package info
github.com/JanPetr/one-result-redirect
Type:magento2-module
pkg:composer/janpetr/algoliasearch-magento2-one-result-redirect
1.0.0
2019-02-19 14:05 UTC
Requires
This package is auto-updated.
Last update: 2026-02-20 06:14:15 UTC
README
Magento 2 module to redirect to the product, when there is only one product in a results.
How it works
This extension adds a Plugin class (How Plugins work) to Algolia's back-end search Adapter class, which checks the number of results returned by Algolia.
If there is only one product returned from Algolia, the extension redirects a user to this returned product.
Installation
Install the extension with Composer:
$ composer require janpetr/algoliasearch-magento2-one-result-redirect $ php bin/magento module:enable JanPetr_OneResultRedirect