A
A
agromov912020-08-20 14:30:02
symfony
agromov91, 2020-08-20 14:30:02

Trouble with Symfony routing?

Routing rules are set for catalog categories

commerce_catalog:
    path:         /{categorySlug}
    defaults:     { _controller: CommerceBundle:Commerce:catalog }
    requirements:
        categorySlug:       catalog(/[\w\-]+/?)*


The problem is that some urls give 404. For example, if it contains '10-lite', it's worth changing to '10lite' or '10l-ite' and everything starts working. What could be the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question