Ayyash
Elmota

Elmota

URL Routing Params are only valid for relative urls

URL Routing Params are only valid for relative urls

Ayyash's photo
Ayyash
·Mar 3, 2022·
Listen to this article

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:

https://someurl.com/;page=1;category=mice

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

https://someurl.com?page=1&category=mice

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 queryParamMapinstead.

 
Share this