I’m developing a package that will require a page redirect under certain conditions. There are no blocks in the package, only dashboard views and controllers.
I’ve attempted to use Redirect::to() from the package controller on_start() method, but that is not working, I supposed because it’s called after headers have been added or it’s too late in the page rendering chain.
Could anyone tell me what they’ve done to implement a redirect from a custom package?