When creating a new component, the route depends completely on the directory structure, like so:


Seems a little unnecessarily strict; can anyone point me to a means of mapping routes to shorter namespaces?

1 Answer 1


Short answer: we need to create a custom router.

We can take a look at Cms router module to see how it works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.