# Redirect when no access

**URL:** <https://community.weweb.io/t/redirect-when-no-access/8101>\
**Category:** How do I?\
**Tags:** authentication, supabase\
**Created:** [April 13, 2024, 5:07pm UTC](https://community.weweb.io/t/redirect-when-no-access/8101 "2024-04-13T17:07:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomlov](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/thomlov/32/8591_2.png) [@thomlov](https://community.weweb.io/u/thomlov)\
**Post date:** [April 13, 2024, 5:07pm UTC](https://community.weweb.io/t/redirect-when-no-access/8101/1 "2024-04-13T17:07:00Z")

</div>

How can I redirect to to another page than login, when the authenticated user has no access to the page?  
As in that the user is not a member of the correct user group to have access to the page.

I’m trying to display a “No access to this page” instead of just the login window again.
