Blazor routing @virtpage "{page:int}" #13544
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
Now in blazor for routing used attribute
@page "/path/next/{page:int}"
which takes as a parameter full path of page:
"/path/next/{page:int}"
.It would be nice to have a similar attribute
@virtpage "/{page:int}"
which just takes as a parameter last changeable part of the url
and another data for mapping to the url
"/path/next/"
will be taken from the virtual directory path.
This attribute will simplify scenario when we have several pages:
and just want that routing of pages will be mapped directly to the *razor files in directories.
The text was updated successfully, but these errors were encountered: