Sekrab Garage

Angular Matrix Routing Params

URL Routing Params are only valid for relative urls

AngularTip March 3, 22
Subscribe to Sekrab Parts newsletter.

It took me a while to get this one, because I don't usually have root urls that need matrix params. An app with such urls:;page=1;category=mice

That won't work, they must turn into query params

W3C says so

It is only sensible for relative URls which start with ";" to take a set of attribute values which are different from those of the base URL.

So in Angular, you have to watch queryParamMap instead.