Optional route parameters not allowed in the templatePrefix for the MapSpaFallbackRoute #499

Closed
opened 2025-08-09 17:16:31 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @bgever on 8/16/2017

Because of this check for the ? character in the templatePrefix, of a MapSpaFallbackRoute call, I'm not able to define an optional route parameter in the template prefix.

680ba7497a/src/Microsoft.AspNetCore.SpaServices/Routing/SpaRouteExtensions.cs (L71-L75)

*Originally created by @bgever on 8/16/2017* Because of this check for the `?` character in the `templatePrefix`, of a `MapSpaFallbackRoute` call, I'm not able to define an optional route parameter in the template prefix. https://github.com/aspnet/JavaScriptServices/blob/680ba7497aab980cbfd1d625a2a894480dbf186e/src/Microsoft.AspNetCore.SpaServices/Routing/SpaRouteExtensions.cs#L71-L75
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#499
No description provided.