I'm trying to do this in Magento 2:
- I have my url : https://www.example.com/page/
- I'd like to add after /page a key value. Example :
- Then I get the key value with
$this->getUrlParams()and depending of the key value I display something different.
Getting the key value works if I do a rewrite url through Magento 2 Admin but I want to do it programmatically.
Any advice ? If you need more explanation, don't hesitate to tell me.