Skip to content

Validate catch-all routing support in Blazor #25199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
captainsafia opened this issue Aug 24, 2020 · 1 comment
Closed

Validate catch-all routing support in Blazor #25199

captainsafia opened this issue Aug 24, 2020 · 1 comment
Assignees
Labels
area-blazor Includes: Blazor, Razor Components Done This issue has been fixed Validation This issue is used to track validation efforts
Milestone

Comments

@captainsafia
Copy link
Member

Validate the feature introduced in #24038.

@captainsafia captainsafia added area-blazor Includes: Blazor, Razor Components Validation This issue is used to track validation efforts labels Aug 24, 2020
@captainsafia captainsafia added this to the 5.0.0-rc1 milestone Aug 24, 2020
@captainsafia captainsafia self-assigned this Aug 24, 2020
@captainsafia
Copy link
Member Author

captainsafia commented Aug 24, 2020

Works well!

@guardrex Let's document this for RC1. Users can now specify catch-all route parameters like so.

@page "/page/{*pageRoute}

@code {
  [Parameter] public string PageRoute {get; set; }
}

When a user visits a page like /page/this/is/a/test then the value of PageRoute will be set to /this/is/a/test. The catch-all parameter must be a string type since we don't support casting for it. Also, the catch-all route parameter must appear at the end of the URL.

Let me know if you need more details about this feature.

Addendum: Feeling some slight deja-vu that I might've already asked for docs on this. If so, ignore this!

@captainsafia captainsafia added the Done This issue has been fixed label Aug 24, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Sep 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components Done This issue has been fixed Validation This issue is used to track validation efforts
Projects
None yet
Development

No branches or pull requests

1 participant