MVC map routes

Posted by Community Admin on 04-Aug-2018 21:51

MVC map routes

All Replies

Posted by Community Admin on 26-Feb-2016 00:00

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
);
how to overwrite Sitefinity/Themes?

Posted by Community Admin on 02-Mar-2016 00:00

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

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

Posted by Community Admin on 08-Mar-2016 00:00

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

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

This thread is closed