https://htmx.org logo
I want to avoid redirections for 2 reasons: 1) Us...
# 🔥-django-htmx
r
I want to avoid redirections for 2 reasons: 1) Using a redirect reloads the whole page and is slower than loading the required fragment only. To me, this speed / "spa-like feeling" is the whole interest of HTMX. 2) Because it would break my custom toast message system. A full HTTP redirection will remove the current displayed messages in the DOM. I want to keep the ability to navigate between "pages" without erase the current messages (like a SPA). To not break my toast system, I need to ensure a part of the DOM is never removed. However, I'm curious about how the
HX-Location
could (or not) fix my problem.