Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi guys,
How do you specify where to redirect a user to when they are not authorized when decorating classes and controllers with [UmbracoMemberAuthorize]?
[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?
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
is working on a reply...
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.
Continue discussion
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?
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
is working on a reply...
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.