Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 52d0222

Browse files
Chris Martinezcommonsensesoftware
authored andcommittedAug 31, 2017
Copy matched RouteData to RouteContext. Fixes #176
1 parent aa1d36b commit 52d0222

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/Microsoft.AspNetCore.Mvc.Versioning/Routing/DefaultApiVersionRoutePolicy.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ protected virtual void OnSingleMatch( RouteContext context, ActionSelectionResul
137137
var candidates = selectionResult.CandidateActions.SelectMany( kvp => kvp.Value );
138138

139139
match.Action.AggregateAllVersions( candidates );
140+
context.RouteData = match.RouteData;
140141
context.Handler = handler.Invoke;
141142
}
142143

0 commit comments

Comments
 (0)
Please sign in to comment.