Skip to content

Remove magic string for razor component @page routing #44253

@denisz1

Description

@denisz1

Is there an existing issue for this?

  • I have searched the existing issues

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

In the Blazor and Razor Pages components we are specify the route like:

@page "/this/is/my/route"

These magic string are not desirable in a modern programming context. And also it become difficult to manage because of duplication - good probability you must write it somewhere else also, and now you have two magic strings... for every route.

Describe the solution you'd like

Please can we have no magic string for something so important like routing?

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋This issue needs the attention of a contributor, typically because the OP has provided an update.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