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
{{ message }}
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
The Controller.RedirectToRoute() method creates a RedirectToRouteResult instance and passes in the routeName and routeValues parameters to it, which are assigned to the RedirectToRouteResult.RouteName and RedirectToRouteResult.RouteValues properties, respectively.
However, on line 48 in the RedirectToRouteResult.ExecuteResult() method, the RouteName property is never used to calculate the destination URL; it is essentially ignored.
I would have expected that Controller.RedirectToRoute() method to consider my provided routeName when calculating the destination URL.
The workaround for now, is pretty simple: just calculate my own destination URL using the controller's UrlHelper, but since Controller.RedirectToRoute() didn't behave as I had expected it to, I'm filing an issue for it.
The text was updated successfully, but these errors were encountered:
The
Controller.RedirectToRoute()
method creates aRedirectToRouteResult
instance and passes in therouteName
androuteValues
parameters to it, which are assigned to theRedirectToRouteResult.RouteName
andRedirectToRouteResult.RouteValues
properties, respectively.However, on line 48 in the
RedirectToRouteResult.ExecuteResult()
method, theRouteName
property is never used to calculate the destination URL; it is essentially ignored.I would have expected that
Controller.RedirectToRoute()
method to consider my providedrouteName
when calculating the destination URL.The workaround for now, is pretty simple: just calculate my own destination URL using the controller's UrlHelper, but since
Controller.RedirectToRoute()
didn't behave as I had expected it to, I'm filing an issue for it.The text was updated successfully, but these errors were encountered: