MVC map routes - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

MVC map routes

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

  • 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
     
  • 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