Website or portal user getting sent to /app upon login

When i register a portal user (website user) the user logs in, it goes into /app. This causes a Not Permitted error message.

Fixes tried:

  1. I tried rerauting all /app to /me and this casues all users to get redirected to /me. Including normal users who should have access to /app.
  2. I tried setting default portal home (inside portal settings) to /me. Yet when user logs in they get sent to /app. So that doesn’t work.

Is there something i am failing to do? I am using frappe cloud.