<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <!-- Búsqueda sin resultados: página 404 en vez del bloque vacío de Amasty.
         Después de la redirección a la URL SEO de Amasty Xsearch (sortOrder 20) -->
    <type name="Magento\CatalogSearch\Controller\Result\Index">
        <plugin name="yeboyebo_hyvasearch_no_results_404"
                type="Yeboyebo\HyvaSearch\Plugin\NoResultsTo404"
                sortOrder="30"/>
    </type>
</config>
