Skip to content

Conversation

@ilonatommy
Copy link
Member

@ilonatommy ilonatommy commented Dec 5, 2025

In relation to #23615 (comment).

The doc summary is misleading and contributes to AI hallucinations.

"current absolute URI" is NavigationManager._uri
and the method uses _baseUri, so "relative to the base URI" is more correct.

@ilonatommy ilonatommy added this to the .NET 11 Planning milestone Dec 5, 2025
@ilonatommy ilonatommy self-assigned this Dec 5, 2025
Copilot AI review requested due to automatic review settings December 5, 2025 10:24
@ilonatommy ilonatommy requested a review from a team as a code owner December 5, 2025 10:24
@ilonatommy ilonatommy added Docs This issue tracks updating documentation area-blazor Includes: Blazor, Razor Components labels Dec 5, 2025
Copilot finished reviewing on behalf of ilonatommy December 5, 2025 10:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR corrects misleading documentation for the ToAbsoluteUri method in NavigationManager. The original documentation incorrectly stated that the method resolves relative URIs "relative to the current absolute URI," when in fact the implementation resolves them relative to the base URI (typically from the <base> element). This fix addresses AI hallucinations caused by the inaccurate documentation.

  • Updated XML documentation comment to accurately reflect the actual behavior of the ToAbsoluteUri method

@ilonatommy ilonatommy enabled auto-merge (squash) December 5, 2025 11:16
@ilonatommy ilonatommy merged commit e590d0b into dotnet:main Dec 5, 2025
36 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components Docs This issue tracks updating documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants