A hook is not expected to return anything. You cannot control the user flow with hooks at this state. They are silently triggered.
Does this mean that in a (hopefully) upcoming release we will be able to handle user flow then? I’d like to be able redirect certain types of users depending on the action taken.
Is there some existing and/or recommended way for flash messages in Kirby? I’d like to be able to take an action and redirect the user to a page with a flash message of some kind letting them know what happened.
If you try to notify without redirecting, you’ll only see Kirby smile notification: :)
I’m finding the smiley notification not very helpful. Even a simple check mark would be more helpful at the very least. And if you set a “notify()” message, the panel should use that message whether you leave the page or not. Just my opinion.
Just be aware that panel()->redirect() is relative to /panel.
So is there anyway to redirect the user to a specific page on the front-end?