Skip to content

[Blazor] Allow to reference constant field in @page directive #13453

@xperiandri

Description

@xperiandri

Is your feature request related to a problem? Please describe.

In order to not forget to change all the occurrences of some route when it changes I would use a constant field. However, Blazor does not allow to reference a constant field in @page directive like I can do in RouteAttribute that it produces.

Describe the solution you'd like

Allow referencing constant field in @page directive

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: Won't FixResolved because we decided not to change the behavior reported in this issue.area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions