Welcome Guest, Not a member yet? Register   Sign In
Before filters with main page redirect when I call a controller with ajax
#1

(This post was last modified: 11-23-2022, 03:31 AM by serialkiller.)

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?
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB