Fix erroneous ////
in default URL for blazorwasm --aad-b2c-instance parameter
#63829
+1
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the erroneous
https:////aadB2CInstance.b2clogin.com/
default value displayed in the help output for the--aad-b2c-instance
parameter in the blazorwasm template.Problem
When running
dotnet new blazorwasm -h
, the--aad-b2c-instance
parameter shows an invalid default URL with extra forward slashes:The
////
in the URL is clearly erroneous and confusing to users.Root Cause
The
AAdB2CInstance
parameter in the template configuration only had a"replaces"
property but no"defaultValue"
property. This caused the template system to display the replacement value (which contains the erroneous////
) as the default in help text.Solution
Added a
"defaultValue": "https://aadB2CInstance.b2clogin.com/"
property with the correct URL format to theAAdB2CInstance
parameter configuration. This follows the same pattern used by the existingAADInstance
parameter, which also has a similar issue with////
in itsreplaces
value but shows the correct default because it has a properdefaultValue
.Result
The help output now correctly displays:
Template creation and URL substitution continue to work correctly with both explicit parameter values and the default behavior.
Fixes #44669
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.