I've a module to create Brands. So when see a brand detail I get an url like http://magento2.lan/brand/view/index/id/1/

And I would like the url looks http://magento2.lan/brand/view/brandName

I searched on the net but I only found examples about stores. Can you help me please ?

2 Answers 2


It is because the param id is passing by method get. There would be investigate which part of the module is passed that parameter by get and overwrite it to pass it by post.

  • Maybe but then how I can change /id/1 to /brandName ?
    – Kpone
    Dec 29, 2016 at 15:52

In your config.xml you do somthing like this


Your Answer

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

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