Skip to content

fix: endpoint urls leave aspire's hidden localhost copy alone - #66

Merged
kieronlanning merged 1 commit into
mainfrom
fix/endpoint-url-keeps-hidden-urls
Nov 20, 2026
Merged

kieronlanning merged 1 commit into
mainfrom
fix/endpoint-url-keeps-hidden-urls

Conversation

@kieronlanning

Copy link
Copy Markdown
Contributor

Problem

With a dev domain (a launch profile host such as minder-web.dev.localhost), Aspire computes two URLs for an endpoint: the dev-domain URL, shown in the dashboard, and a localhost copy of the same endpoint marked DetailsOnly. ResourceKitUrl.Apply set the display text and SummaryAndDetails on every URL of the named endpoint, so [EndpointUrl("https", DisplayText = "Web")] revealed and relabelled the hidden copy: the dashboard showed two "Web" links, one opening https://localhost:7311.

Observed on an Aspire 17 AppHost (aspire describe):

URL Before Expected
https://minder-web.dev.localhost:7311 "Web", shown "Web", shown
https://localhost:7311 "Web", shown unlabelled, details only

Fix

  • [EndpointUrl] (a ResourceKitUrl without Url) customises only the URLs Aspire shows for the endpoint; the details-only copy is left as it is. When Aspire shows no URL for the endpoint, all of its URLs are customised, as before.
  • A relative [ResourceUrl] resolves against the endpoint's shown URL before the details-only copy.

Tests

  • Apply_GivenEndpointUrlWithoutUrl_LeavesTheEndpointsHiddenUrlsAlone and Apply_GivenRelativeUrl_ResolvesAgainstTheEndpointsShownUrl failed before the change and pass after.
  • Apply_GivenEndpointUrlWhoseUrlsAreAllHidden_CustomisesThem guards the fallback.
  • ResourceKit.UnitTests: 298/298 on net10.0 and net11.0; CSharpier check clean.

CHANGELOG (Unreleased, Fixed) and docs/wiki/concepts/Groups-and-URLs.md updated.

@kieronlanning
kieronlanning merged commit cfe360a into main Nov 20, 2026
1 check passed
@kieronlanning
kieronlanning deleted the fix/endpoint-url-keeps-hidden-urls branch November 20, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant