+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / MVC map routes

MVC map routes

3 posts, 0 answered
  1. CBZS
    CBZS avatar
    1 posts
    Registered:
    26 Feb 2016
    26 Feb
    Link to this post

    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?

  2. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    08 Dec 2016
    02 Mar
    Link to this post
    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
     
  3. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    08 Dec 2016
    08 Mar
    Link to this post
    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
     
3 posts, 0 answered