Skip to content

Commit

Permalink
Added redirect for deprecated route
Browse files Browse the repository at this point in the history
  • Loading branch information
mamazu committed Apr 5, 2019
1 parent 728e41a commit c2599c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Resources/config/routing/productBySlug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ sylius_shop_api_product_show_details_by_slug_deprecated:
path: /products-by-slug/{slug}
methods: [GET]
defaults:
_controller: sylius.shop_api_plugin.controller.product.show_product_details_by_slug_action
_controller: 'Symfony\Bundle\FrameworkBundle\Controller\RedirectController:urlRedirectAction'
path: /{channelCode}/products/by-slug/{slug}
permanent: true

sylius_shop_api_add_product_review_by_slug_deprecated:
path: /product-reviews-by-slug/{slug}
Expand Down

0 comments on commit c2599c3

Please sign in to comment.