79363562

Date: 2025-01-17 03:58:39
Score: 2.5
Natty:
Report link

From this post: https://stackoverflow.com/a/78353968/8031370

In App.razor:

<base href="@BaseUrl" />

At the bottom of App.razor add:

@code {
    [CascadingParameter]
    private HttpContext HttpContext { get; set; } = null!;
    private string BaseUrl => $"{HttpContext.Request.PathBase}/";
}
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jonathan B.