This commit is contained in:
seho-nl 2026-06-24 07:12:28 +00:00 committed by GitHub
commit 6bd534e4fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 19 additions and 12 deletions

View file

@ -19,8 +19,13 @@ sylius_shop_security:
sylius_shop_user:
resource: "@SyliusShopBundle/Resources/config/routing/shop_user.yml"
sylius_shop_taxon:
resource: "@SyliusShopBundle/Resources/config/routing/taxon.yml"
prefix: /taxons
sylius_shop_product:
resource: "@SyliusShopBundle/Resources/config/routing/product.yml"
prefix: /products
sylius_shop_product_review:
resource: "@SyliusShopBundle/Resources/config/routing/product_review.yml"

View file

@ -2,7 +2,7 @@
# (c) Sylius Sp. z o.o.
sylius_shop_product_show:
path: /products/{slug}
path: /{slug}
methods: [GET]
defaults:
_controller: sylius.controller.product::showAction
@ -14,14 +14,3 @@ sylius_shop_product_show:
- "expr:service('sylius.context.channel').getChannel()"
- "expr:service('sylius.context.locale').getLocaleCode()"
- $slug
sylius_shop_product_index:
path: /taxons/{slug}
methods: [GET]
defaults:
_controller: sylius.controller.product::indexAction
_sylius:
template: "@SyliusShop/product/index.html.twig"
grid: sylius_shop_product
requirements:
slug: .+(?<!/)

View file

@ -0,0 +1,13 @@
# This file is part of the Sylius package.
# (c) Sylius Sp. z o.o.
sylius_shop_product_index:
path: /{slug}
methods: [GET]
defaults:
_controller: sylius.controller.product::indexAction
_sylius:
template: "@SyliusShop/product/index.html.twig"
grid: sylius_shop_product
requirements:
slug: .+(?<!/)