Commit Graph

4 Commits

Author SHA1 Message Date
609f6d3d9f Fixes to email verification process
Also make registration form progressively enhanced.
2023-10-06 17:50:08 -04:00
a72bfa15bd Use HX-Target, not HX-Boost for Layout render
HX-Boost is not always sent in all AJAX requests that htmx sends, only
those initiated by an element with hx-boost enabled. It was not showing
up on requests following an HX-Redirect response.

After reading the docs more, I realized HX-Target was what I wanted. If
I can see that the request is targeting `#main-content` then I know to
only return HTML inside that element. Simple.
2023-09-27 01:28:53 -04:00
092a38ad52 Add hx-boosted support to Layout
It will now skip rendering the layout if the request is coming from an
hx-boosted link or form and only update the head title with a
hx-swap-oob.
2023-09-26 23:36:31 -04:00
81b4ef860e Fix login/signup redirection
HTMX needs special treatment for redirects on submit.
2023-09-26 01:48:05 -04:00