Can we check programatically if a user is on a panel page or a front page?

My question is in the title :wink:
My purpose is to check in a “if” statement if the user is in the panel or in a front page.

I’m not really sure I understand your question; but if you’ld like to know if a user has access to the panel, you could check for it’s role. As those define access AFAIK?

And if you’ld like to know if you’re in the panel or in the frontend, you could check the path?

I want to know if a user is in the panel or in the frontend. I will try to check this with path. Thanks for this suggestion :slight_smile:

I see. Maybe there’s another trick to test if you’re inside the panel too that I’m not aware of :wink:

maybe something in the session of the user?