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

Forums / General Discussions / Sitefinity 8.1 Bootstrapper MapRoute no longer works

Sitefinity 8.1 Bootstrapper MapRoute no longer works

4 posts, 0 answered
  1. Narasimha
    Narasimha avatar
    14 posts
    Registered:
    26 May 2015
    16 Jul 2015
    Link to this post

    The following lines of code seems to be broken, they don't work anymore. 

     Bootstrapper.MVC.MapRoute(

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

  2. Narasimha
    Narasimha avatar
    14 posts
    Registered:
    26 May 2015
    16 Jul 2015
    Link to this post
    We used the Route attribute for all Ajax calls in the controller method and then it started working...
  3. Jurgen
    Jurgen avatar
    11 posts
    Registered:
    11 Oct 2011
    03 Sep 2015
    Link to this post

    Any info from Telerik staff about this? The function didn't even go deprecated.

    Is there another function for configuring the route?

  4. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    30 Nov 2016
    08 Sep 2015
    Link to this post
    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.
    Bootstrapper.MVC.MapRoute(
                    "Classic",
                    "someurl/{controller}/{action}/{id}",
                    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):

    Regards,
    Stanislav Velikov
    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
     
4 posts, 0 answered