Closed neznaika0 closed 1 day ago
Well, I don't think there is currently anything that can be done about it. Adding customization options for this would be problematic.
The only workaround would be to use the ajax-header extension.
the sick option is to change the service('codeigniter')
.
Perhaps it is worth writing recommendations? https://github.com/michalsn/codeigniter-htmx/blob/develop/docs/troubleshooting.md
Oh, I forgot that CodeIgnter class is also a service. In that case, feel free to send a pull request.
Otherwise, the HTMX request may change the previous URL. While we are updating on the same page (tab), there is no problem. But if
previous_url()
returns another page, the result is unexpected. File vendor/codeigniter4/framework/system/CodeIgniter.php instorePreviousURL()
:or identify HTMX = AJAX. But it can introduce new dependencies.