Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Attribute Routing: Url Generation #729

@rynowak

Description

@rynowak

This item tracks creating the rough skeleton and infrastructure for URL generation for attribute routed actions, as well as providing ambient route values so that conventional link generation functions as-expected (MVC 5 behavior) when an attribute route is matched.

Follow up items track optimizing the implementation.

design

The attribute-mega-route will match on specific tokens for action and controller and maintain a mapping from these values to the route template for each action descriptor. On match it will attempt to use that template to generate a link.

Additionally when an attribute routed action matches, the MVC handler will add some data to the route values to provide the expected 'ambient values' for link generation to behave consistently with conventional routing.

Though this description mentions the 'action' and 'controller' tokens, the process will be totally data driven by the ADP. These tokens won't appear in our code other than building the action descriptor.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions