Welcome Guest, Not a member yet? Register   Sign In
Redirect from within a custom Filter
#1

Hi there,
I'm struggling to perform what should be a simple redirect from within a custom Filter.  I've followed the documentation (https://codeigniter4.github.io/userguide...lters.html) and the exact redirect example:
return redirect()->to(site_url('login'));

I can see in my network tab in Chrome that the redirect is supposedly occurring, but the page is not being redirected.  The filter is being applied to a controller through routes, which uses Ajax, if that makes a difference.

Thank you in advance for your assistance.
Reply
#2

(03-17-2022, 07:05 AM)stresbiz Wrote: Hi there,
I'm struggling to perform what should be a simple redirect from within a custom Filter.  I've followed the documentation (https://codeigniter4.github.io/userguide...lters.html) and the exact redirect example:
return redirect()->to(site_url('login'));

I can see in my network tab in Chrome that the redirect is supposedly occurring, but the page is not being redirected.  The filter is being applied to a controller through routes, which uses Ajax, if that makes a difference.

Thank you in advance for your assistance.

show us how you did
Codeigniter First, Codeigniter Then You!!
yekrinaDigitals

Reply




Theme © iAndrew 2016 - Forum software by © MyBB