Hey Folks,
that is the basic for my user configuration. But the user has restricted access to specific pages in the the panel via the Plugin Bouncer | Kirby CMS Plugins.
I want to logout my client-user to the homepage and not to /panel/login page.
How should I root that?
I have read two concerning articles here (K2/K3). But there were no solution yet.
I am not fully sure what you are trying to achieve as the Bouncer plugin you link to handles access in the Panel and the article you linked to is restricting access on the frontend.
Hey, thx for your answer. Both, the article and the Plugin have no direct connection. I just want to show, what I want.
Well, i built up a site where a few Users will have access using the bouncer Plugin. There is also a frontend Login Page for these users. But when these users logout from panel, the will be redirected to /panel/login. I want them to route to a frontend page. So this is the question how to do that.
In the linked article there is the same question. But this is K2. So I hoped in K4 there is a solution to doing this.
Hope you understand what I want to figure out and maybe can help.
THX in advance.
This must then be go() instead of Panel::go(). But are modifying the source code here instead of overwriting the area? Not sure overwriting works, at least I couldn’t get it to work, maybe @distantnative has some example code.
That was indeed not the suggestion! As a rule, never touch the source code, any changes there will be overwritten with the next update.
The original idea was to overwrite the logout area in a plugin, but I must admit that I couldn’t get it to work, otherwise would have posted my solution.