New answers tagged

1 vote
Accepted

How to use hypen symbols in custom module controller url in Magento 2?

There are a few ways to do this. As far as I'm aware only the frontName of a route allows dashes in it. You could create a custom router to do this but I think a better way would be to create a setup ...
user avatar
  • 396
1 vote

How to change the custom controller url to fancy url in magento 2

First you neeed to define a router in your etc/frontend/di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:...
user avatar
  • 737

Top 50 recent answers are included