diff --git a/src/Resources/config/routing/shop.yaml b/src/Resources/config/routing/shop.yaml index e0eaf4bb..11a0d06b 100644 --- a/src/Resources/config/routing/shop.yaml +++ b/src/Resources/config/routing/shop.yaml @@ -4,7 +4,7 @@ monsieurbiz_search_search: defaults: _controller: MonsieurBiz\SyliusSearchPlugin\Controller\SearchController::searchAction requirements: - query: .+ + query: .* condition: "not(context.getPathInfo() matches '`^%sylius.security.new_api_route%`') and context.checkElasticsearch()" monsieurbiz_search_post: