Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jul 22, 2025

The Blazor Web template's HTTPS launch profile was missing the HTTP URL in its applicationUrl configuration, making it inconsistent with other ASP.NET Core templates.

Problem:
In src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/Properties/launchSettings.json, the HTTPS profile only had:

"applicationUrl": "https://localhost:5501"

Solution:
Updated to include both HTTPS and HTTP URLs for consistency:

"applicationUrl": "https://localhost:5501;http://localhost:5500"

This matches the pattern used by all other ASP.NET Core templates:

  • StarterWeb: "applicationUrl": "https://localhost:5001;http://localhost:5000"
  • EmptyWeb: "applicationUrl": "https://localhost:5001;http://localhost:5000"
  • WebAPI: "applicationUrl": "https://localhost:5001;http://localhost:5000"
  • GrpcService: "applicationUrl": "https://localhost:5001;http://localhost:5000"

The LocalhostTld conditional branch was already correct and included both URLs.

Fixes #62852.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@Copilot Copilot AI changed the title [WIP] [Templates] Https changes broke the application URL for blazor Fix Blazor template HTTPS profile to include HTTP URL Jul 22, 2025
@Copilot Copilot AI requested a review from javiercn July 22, 2025 09:06
Copilot finished work on behalf of javiercn July 22, 2025 09:06
@javiercn javiercn requested a review from DamianEdwards July 30, 2025 11:01
@DamianEdwards DamianEdwards marked this pull request as ready for review July 30, 2025 19:02
@Copilot Copilot AI review requested due to automatic review settings July 30, 2025 19:02
Copy link
Contributor

@Copilot 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 fixes an inconsistency in the Blazor Web template's HTTPS launch profile by adding the HTTP URL to the applicationUrl configuration. The change ensures consistency with other ASP.NET Core project templates.

Key Changes

  • Updated the HTTPS profile's applicationUrl to include both HTTPS and HTTP URLs
  • Maintained consistency with other ASP.NET Core templates that use the same pattern

@DamianEdwards
Copy link
Member

/backport to release/10.0-preview7

Copy link
Contributor

Started backporting to release/10.0-preview7: https://github.com/dotnet/aspnetcore/actions/runs/16631436102

@DamianEdwards DamianEdwards merged commit 0f963e9 into main Jul 30, 2025
30 checks passed
@DamianEdwards DamianEdwards deleted the copilot/fix-62852 branch July 30, 2025 19:07
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-rc1 milestone Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Templates] Https changes broke the application URL for blazor
3 participants