How do I return CurrentUmbracoPage with hijacked controllers and custom routes?
I'm using custom routes, controllers (hijacked from the doctype), and models that do not inherit from RenderModel. The site is tested and works fine until I get to form processing.
In my form post on my surface controller, when validation fails how do I return the CurrentUmbracoPage and maintain the Umbraco context? Of course, simply returning CurrentUmbracoPage() does not work as the context is lost.
How do I return CurrentUmbracoPage with hijacked controllers and custom routes?
I'm using custom routes, controllers (hijacked from the doctype), and models that do not inherit from RenderModel. The site is tested and works fine until I get to form processing.
In my form post on my surface controller, when validation fails how do I return the CurrentUmbracoPage and maintain the Umbraco context? Of course, simply returning CurrentUmbracoPage() does not work as the context is lost.
Nevermind, this works just fine and I have no idea why I was getting a null Umbraco context beforehand.
is working on a reply...