I have a page on codeignater 4. In the browser, the page opens correctly, but when I redirect to this page, the 404 page opens, and then if I refresh the page again, then it loads again correctly. Why could this be?
also if I send a request to the page with ajax, then 404 opens, and it works correctly in the browser
My routes: $routes->get('page2101', 'page::page2101');
My controller "Page"
public function page2101() { echo 'Hello World!'; }