ajax redirect to exception/error pages |
Looking at the URLs you're setting for window.location I pretty sure you are getting redirecting to a 404 anyway.
CodeIgniter expects the URL segments after to represent controller/method/args and errors/html/error_404 does not fit that pattern. So you will need to create a controller/method to handle the error condition (or conditions) that might be returned. The methods should either load a view detailing the error or throw an exception - possibly both. From the controller/methods, you can PHP Code: echo view('errors/html/error_404'); or PHP Code: echo view('errors/html/production); Or any other view files in errors/html or any custom pages saved anywhere you care to create them. |
Messages In This Thread |
ajax redirect to exception/error pages - by kristianlake - 06-20-2020, 02:44 AM
RE: ajax redirect to exception/error pages - by InsiteFX - 06-20-2020, 03:02 AM
RE: ajax redirect to exception/error pages - by kristianlake - 06-20-2020, 07:46 AM
RE: ajax redirect to exception/error pages - by dave friend - 06-21-2020, 12:53 PM
RE: ajax redirect to exception/error pages - by kristianlake - 06-22-2020, 10:01 AM
RE: ajax redirect to exception/error pages - by dave friend - 06-22-2020, 11:36 AM
|