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 95 posts 432 karma points
    May 29, 2022 @ 11:07
    Philip Hayton

    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:



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

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

    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: