You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✔️ Resolution: By DesignResolved because the behavior in this issue is the intended design.area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templates
On a razor page we can do this to change the default folder-based route: @page "/xxx/yyy"
but trying to do this with a strongly typed property in some class Constants.Routes does not work public const string Myroute = "/mysuperroute";
and @page @Constants.Routes.Myroute
I am getting an error The 'page' directive expects a string surrounded by double quotes.
@Ponant sadly there is no way around this and is by design due to our requirement to harvest page routes without needing to run the application or do C# advanced logic to determine what a pages route should be.
✔️ Resolution: By DesignResolved because the behavior in this issue is the intended design.area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templates
Activity
NTaylorMullen commentedon Mar 1, 2019
@Ponant sadly there is no way around this and is by design due to our requirement to harvest page routes without needing to run the application or do C# advanced logic to determine what a pages route should be.
Ponant commentedon Mar 16, 2019
@NTaylorMullen , I understand but I think it will be a big plus because I find it very hard to scale an app with strings.