I have a custom extension that adds 'testimonials' functionality to M2. The path that I can access these testimonials in the frontend is /testimonials/index/index. I've added a type field to the testimonials where I can set it to either "reviews" or "customer letters".

What I want to do is create two custom routes in this extension so that I can access in one the "customer reviews" through the /customer-reviews path, and in the other the "customer letters" with the /customer-letters path.

I've spent the last two days trying to figure this out and haven't been able to get it working.

Can you please guide me through this? I'm a frontend developer trying to do some backend stuff.

Thank you.

1 Answer 1


Have you seen this?


<router id="standard">    
    <route frontName="customer-reviews" id="reviews">
        <module name="HelloWorld_Hello"/>
    <route frontName="customer-letters" id="letters">
        <module name="HelloWorld_Hello"/>

So basically have multiple entries in routes.xml

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.