November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Hi Paul,
Did you register your path in the Initialisation module.
It should look something like this as below
public void Initialize(InitializationEngine context) {
var partialRouter = new SharedNewsRouter();
RouteTable.Routes.RegisterPartialRouter(partialRouter);
}
Yes my IPartialRouter is registered and get's called when the page is rendered in edit mode, but not view mode.
I am trying to do some partial routing for my custom object, something similar to this: http://world.episerver.com/blogs/Johan-Bjornfot/Dates1/2012/11/Partial-Routing/
When I call UrlResolver.Current.GetVirtualPathForNonContent with my custom object, the url it generates is "currentpage/?routedData=MyCustomDataClass" and my IPartialRouter.GetPartialVirtualPath method is never called. Wonder what I'm missing? Bizarely, it works in edit mode (as in, my IPartialRouter is called and it generates the correct url)