Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

Closed Unassigned: Calling C1PageRoute.GetRouteData multiple times fails [1758]

$
0
0
In the following discussion its the case that multiple calls to C1PageRoute.GetRouteData gives an error https://compositec1.codeplex.com/discussions/352703.

This is due to the method setting a flag that it has been called, and next time the following line will fail

Verify.IsFalse(context.Items.Contains(HttpContextItem_C1PageUrl), "C1PageRoute was executed twice during the same request. If could be f.e. because there's an MVC player that have a route that matches a C1 page url.");

Looks to me that this line tries to fix a problem with the MVC player, but either way this is wrong. You should be able to call GetRouteData as many times you want without it failing.
Comments: Fixed in the latest builds

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>