Copied to clipboard

Flag this post as spam?

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


  • Vlael Layug 13 posts 115 karma points c-trib
    Jul 03, 2021 @ 07:41
    Vlael Layug
    0

    Umbraco 9 - SurfaceController Current Context

    Surface Controller - Umbraco Context

    On Umbraco V8 when getting the Umbraco Context it gives back the context from where we submitted the form.

    But on Umbraco 9 gives back the current surface context. But shouldn't we need the context from where we submitted the form?

    Current Usage:

    View: enter image description here

    My surface controller implementation: enter image description here

    SurfaceController class base implementation: enter image description here

  • Vlael Layug 13 posts 115 karma points c-trib
    Jul 03, 2021 @ 07:58
    Vlael Layug
    100

    Oh. Looks like this helper needs to be used to get the UmbracoContext correctly. enter image description here

    I saw the usage here: https://github.com/umbraco/Umbraco-CMS/pull/9762#issuecomment-773308193

  • 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