red-france-69804
08/11/2022, 12:04 PMHX-Redirect attribute, to trigger the redirection from the client, using HTMX.
I can't help more as I have no example usage in mind right now.
python
class HttpResponseClientRedirect(HttpResponseRedirectBase):
status_code = 200
def __init__(self, redirect_to: str, *args: Any, **kwargs: Any) -> None:
super().__init__(redirect_to, *args, **kwargs)
self["HX-Redirect"] = self["Location"]
del self["Location"]