@code { [Parameter] public required String Path { get; set; } private List _pathFragments; [Parameter(CaptureUnmatchedValues = true)] public IDictionary? AdditionalAttributes { get; set; } protected override Task OnInitializedAsync() { _pathFragments = Path .ReplaceRegex(@"/$", "") .Split('/', StringSplitOptions.RemoveEmptyEntries) .ToList(); return base.OnInitializedAsync(); } }