Passing parameter through permalink structure

Typically, you will add the parameter to the URL on a different page. For example:

<a href="http://domain.com/test?m=1">Details about M1</a>

This is because the parameter affects what the server loads. So you can’t go to the URL and then add the parameter after load. That’s not what its for.