MVC map routes
Please help me map route to perform Redirect like this
return Redirect(Url.Action("MyAction", "MyController", new Id = someId ));
../MyController/MyAction?Id=id
Currently, this routes to:
../Sitefinity/Themes?action=MyAction&controller=MyController&Id=id
Here's my default route map
routes.MapRoute(
name: "Default",
url: "controller/action/id",
defaults: new controller = "Home", action = "Index", id = UrlParameter.Optional
);
Hello,
I was able to reproduce this only in Classic MVC mode. It also reproduces using RedirectToAction.
If the widget is placed on a page, it is working as expected.
I will get this issue verified by our QAs and will update the thread.
Regards,
Nikola Zagorchev
Telerik
Hello,
The experienced behavior is a bug when using Classic MVC mode.
You can view the bug item in our portal:
http://feedback.telerik.com/Project/153/Feedback/Details/185388-mvc-classic-mode-redirecttoaction-and-url-action-are-not-working
I have updated your Telerik points. Please, excuse us for the inconvenience caused.
You can follow the item for status updates.
Regards,
Nikola Zagorchev
Telerik