-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed as not planned
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-serverfeature-routing
Milestone
Description
I have two sides
@page "/{article?}"
<h2>@article</h2>
@code {
[Parameter]
public string article { get; set; } = "";
protected override async Task OnInitializedAsync()
{
if(article != "testArticle")
{
// return NOTFOUND
}
}
}
@page "/{game?}"
<h2>@game</h2>
@code {
[Parameter]
public string game { get; set; } = "";
protected override async Task OnInitializedAsync()
{
if(game != "testGame")
{
// NOTFOUND
}
}
}
I would like many sites to be able to run under one domain like in mvc
example:
domain.com/good-news
dmoain.com/best-game
domain.com/good-forwarding
domain.com/testGame
domain.com/testArticle
in mvc it was enough to give return NotFound();
Metadata
Metadata
Assignees
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-serverfeature-routing