Sitefinity 8.1 Bootstrapper MapRoute no longer works

Posted by Community Admin on 03-Aug-2018 01:31

Sitefinity 8.1 Bootstrapper MapRoute no longer works

All Replies

Posted by Community Admin on 16-Jul-2015 00:00

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 );

Posted by Community Admin on 16-Jul-2015 00:00

We used the Route attribute for all Ajax calls in the controller method and then it started working...

Posted by Community Admin on 03-Sep-2015 00:00

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

Is there another function for configuring the route?

Posted by Community Admin on 08-Sep-2015 00:00

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
 

This thread is closed