_login page not recognising existing session

Matrix Version: 5.4.5.1

I’m pointing people at an _login url from a landing page to force a Matrix session for a form page, and that works well for initial visit.

If they visit the landing page again, and follow the _login link a second time it’s generating an error message:

You do not have access to view this page.

Is there any way I can setup the login design to recognise the existing session and simply route the user onwards to the form? Have looked at https://matrix.squiz.net/manuals/designs/chapters/login-form-design-area but nothing leapt out at me.

Between 5.4.5.1 and 5.4.6.0 I don’t think the login design handles areas related to being already logged in correctly - https://squizmap.squiz.net/matrix/12061

After that I think you could just render something in the LOGUT_SECTION based on the current URL including _login.

1 Like

Thanks David - that squizmap got me looking at the parse file code (copied from another piece of work) and I have found where the error message was, and adapted the page further to work as required.