Before filters with main page redirect when I call a controller with ajax |
I created a filter which I added to the before list in the Config/Filters.php file, added some exceptions and everything works.
My application in several parts uses ajax to load content into the page, for example lists of records, or send data from forms. In these cases the filter continues to work but the redirect is not done on the main page, but in the block where the content is loaded via ajax. This all makes sense, because I call that controller and that controller is affected by the filter rules. Is there a way to redirect the main page and not the ajax block? |
Messages In This Thread |
Before filters with main page redirect when I call a controller with ajax - by serialkiller - 11-23-2022, 03:28 AM
RE: Before filters with main page redirect when I call a controller with ajax - by motoroller - 11-23-2022, 02:23 PM
RE: Before filters with main page redirect when I call a controller with ajax - by serialkiller - 11-24-2022, 01:26 AM
RE: Before filters with main page redirect when I call a controller with ajax - by ozornick - 11-24-2022, 06:53 AM
RE: Before filters with main page redirect when I call a controller with ajax - by serialkiller - 11-24-2022, 07:04 AM
RE: Before filters with main page redirect when I call a controller with ajax - by ozornick - 11-24-2022, 11:37 AM
RE: Before filters with main page redirect when I call a controller with ajax - by serialkiller - 11-25-2022, 01:56 AM
|