Sitefinity 8.1 Bootstrapper MapRoute no longer works - General Discussions - General Discussions - Progress Community
 General Discussions

Sitefinity 8.1 Bootstrapper MapRoute no longer works

  • Sitefinity 8.1 Bootstrapper MapRoute no longer works
  • The following lines of code seems to be broken, they don't work anymore. 


                    "Partial", "Partial/controller/action/id", new controller = "Home", action = "Index", id = UrlParameter.Optional );

  • We used the Route attribute for all Ajax calls in the controller method and then it started working...
  • Any info from Telerik staff about this? The function didn't even go deprecated.

    Is there another function for configuring the route?

  • Hi,

    I suppose the site where the use of Bootstrapper.MVC.MapRoute is running Sitefinity 8.1. This have been rmoved in Sitefinity 8.1, here is the list of breaking changes in this version.

    For versions prior to 8.1 the below call to map a route is functioning.
                    new controller = "SitefinityTestMvc", action = "Index", id = (string)null

    Another cause is that the page template for the page where the MVC widget that uses the mapped route is placed. 
    If in the view for the widget  the form tag is declared like: (Html.BeginFormSitefinity("StoryCommit", "tellStory",FormMethod.Post)) this works differently according the MVC mode you are in (for more info refer to Sitefinity Docs - MVC modes):

    Stanislav Velikov
    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