diff --git a/config/routes/shop/partial/product.yml b/config/routes/shop/partial/product.yml index f00a14c..3931d37 100644 --- a/config/routes/shop/partial/product.yml +++ b/config/routes/shop/partial/product.yml @@ -15,16 +15,16 @@ sylius_shop_partial_product_index_latest: - "expr:service('sylius.context.locale').getLocaleCode()" - '!!int $count' -#sylius_shop_partial_product_show_by_slug: -# path: /{slug} -# methods: [GET] -# defaults: -# _controller: sylius.controller.product::showAction -# _sylius: -# template: $template -# repository: -# method: findOneByChannelAndSlug -# arguments: -# - "expr:service('sylius.context.channel').getChannel()" -# - "expr:service('sylius.context.locale').getLocaleCode()" -# - $slug +sylius_shop_partial_product_show_by_slug: + path: /{slug} + methods: [GET] + defaults: + _controller: sylius.controller.product::showAction + _sylius: + template: $template + repository: + method: findOneByChannelAndSlug + arguments: + - "expr:service('sylius.context.channel').getChannel()" + - "expr:service('sylius.context.locale').getLocaleCode()" + - $slug