You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
API Proposal: BasePath component for Blazor #66388
Blazor apps hosted under subpaths (e.g., /dashboard) require a <base href=""> element with the correct path. This currently requires manual editing or per-app JavaScript workarounds, which are inconsistent across hosting models and easy to break during deployment. The BasePath component centralizes how Blazor apps compute their base URI by rendering a <base> element whose href value matches the current request path base.
Thank you for submitting this for API review. This will be reviewed by @dotnet/aspnet-api-review at the next meeting of the ASP.NET Core API Review group. Please ensure you take a look at the API review process documentation and ensure that:
The PR contains changes to the reference-assembly that describe the API change. Or, you have included a snippet of reference-assembly-style code that illustrates the API change.
The PR describes the impact to users, both positive (useful new APIs) and negative (breaking changes).
Someone is assigned to "champion" this change in the meeting, and they understand the impact and design of the change.
Area:area-blazor (proposal adds a new BasePath Razor component in Microsoft.AspNetCore.Components.Endpoints, directly in the Blazor/Components space) Type:api-proposal (formal API addition proposal for a new sealed BasePath : IComponent class; additive, no breaking changes)
The issue is filed by a team member (@javiercn) and is already marked api-ready-for-review, indicating it has been through internal review. Added api-proposal to complete type classification.
No parameters are exposed on the component; it derives the <base href> from NavigationManager.BaseUri, keeping the API surface minimal.
Additive only — existing manual <base> tags remain fully supported.
Activity
dotnet-policy-service commentedon Apr 20, 2026
Thank you for submitting this for API review. This will be reviewed by @dotnet/aspnet-api-review at the next meeting of the ASP.NET Core API Review group. Please ensure you take a look at the API review process documentation and ensure that:
github-actions commentedon Apr 20, 2026
Triage Summary
Area:
area-blazor(proposal adds a newBasePathRazor component inMicrosoft.AspNetCore.Components.Endpoints, directly in the Blazor/Components space)Type:
api-proposal(formal API addition proposal for a new sealedBasePath : IComponentclass; additive, no breaking changes)Potential Duplicates
<base href="/" />alternative for Blazor MVC integration (related — same pain point around subpath base tags, different scope/approach; not a duplicate)Notes
@javiercn) and is already markedapi-ready-for-review, indicating it has been through internal review. Addedapi-proposalto complete type classification.<base href>fromNavigationManager.BaseUri, keeping the API surface minimal.<base>tags remain fully supported.BasePath#66797 as a duplicate of this issuejaviercn commentedon Jun 1, 2026
Proposed API
Approved without changes
javiercn commentedon Jul 27, 2026
Done.
Microsoft.AspNetCore.Components.Endpoints.BasePathshipped as approved in c8d47d3. Closing as implemented.