How to create a group of routes in Blazor with parameters?

Asked

Viewed 44 times

0

I’m trying to create a structure in my Blazor Client-Side like this:

  • Pages
    • Users
      • Index.Razor
      • Show.

On my page Index is like this at the beginning:

@page "/users/"

And on my page Show is like this:

@page "/users/{id}"

When I sail the route users works normally. But when you have parameter and you are on another page .razor, doesn’t work.

I couldn’t find anything to help me.

And for the record, this is the first official question of a question about Blazor at PT Stackoverflow.

  • I don’t know what I did, maybe I restarted the server, I don’t know. I know that this structure that I posted above is working now.

  • What has no solution, solved is.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.