Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matthew Kirschner 323 posts 609 karma points
    Jul 27, 2015 @ 17:59
    Matthew Kirschner
    0

    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.

  • Matthew Kirschner 323 posts 609 karma points
    Jul 27, 2015 @ 18:49
    Matthew Kirschner
    0

    Nevermind, this works just fine and I have no idea why I was getting a null Umbraco context beforehand.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies