Copied to clipboard

Flag this post as spam?

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


  • Philip Hayton 98 posts 435 karma points
    May 29, 2022 @ 11:07
    Philip Hayton
    0

    Specify redirect URL for UmbracoMemberAuthorize attribute

    Hi guys,

    How do you specify where to redirect a user to when they are not authorized when decorating classes and controllers with [UmbracoMemberAuthorize]?

    I have a multi-culture setup so may need a different route per each culture, eg:

    /login

    /es/acceso

    Is this possible or do I have to write a custom attribute?

  • Patrick de Mooij 73 posts 623 karma points MVP 3x c-trib
    May 30, 2022 @ 10:47
    Patrick de Mooij
    0

    Don't think this is supported by default. For a v8 project, I ended up writing my own attribute that does the redirecting to the page that I want. That is probably the best way to go forwards for you too

Please Sign in or register to post replies

Write your reply to:

Draft