@page "/Error" @using System.Diagnostics @S.Error_PageTitle

@S.Error_Heading

@S.Error_Message

@if (ShowRequestId) {

@S.Error_RequestId @RequestId

}

@S.Error_DevelopmentMode

@* "Development" and ASPNETCORE_ENVIRONMENT are literal environment names — emphasised, never translated. *@ @((MarkupString)Loc.F(S.Error_DevelopmentSwap, "Development"))

@S.Error_DevelopmentWarning @S.Error_DevelopmentWarningDetail @((MarkupString)Loc.F(S.Error_DevelopmentEnableHint, "Development", "ASPNETCORE_ENVIRONMENT"))

@code{ [CascadingParameter] private HttpContext? HttpContext { get; set; } private string? RequestId { get; set; } private bool ShowRequestId => !string.IsNullOrEmpty(RequestId); protected override void OnInitialized() => RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier; }