Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Weird Url generated by GetVirtualPathForNonContent


I am trying to do some partial routing for my custom object, something similar to this:

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)

Nov 20, 2015 10:47

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

Nov 20, 2015 15:10

Yes my IPartialRouter is registered and get's called when the page is rendered in edit mode, but not view mode.

Nov 20, 2015 15:19

* BUMP *

Nov 23, 2015 15:54
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.