How to read page url/query parameter?

Hi there

I need to call a page directly from outside and pass parameters via URL like this:


How can I get the "token" parameter in the page (and i.e. pass it to a data call). I checked the ${parameters} object but it is always empty!

Hi @louis77,

The ${parameters} object is only available when page parameters are used (that map to Blazor route parameters). Query string parameters are a different concept. This blog post shows how to work with query string parameters in a Blazor application: