Before filters with main page redirect when I call a controller with ajax |
Do you want an unauthorized user to be redirected to the main page when requesting Ajax?
then you need to determine that the request is from XHR and return some status or link. In JS function check "url = redirect or html = paste on page" condition https://codeigniter.com/user_guide/general/ajax.html |
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
|