I would like to propose an enhancement to the HttpResponseLocation class. Currently, this class provides a way to handle HTTP responses with location headers, primarily supporting URL redirection. However, the HTMX library also supports a select element as part of the hx-location feature, which allows for more dynamic client-side redirections.
Description
I would like to propose an enhancement to the
HttpResponseLocation
class. Currently, this class provides a way to handle HTTP responses with location headers, primarily supporting URL redirection. However, the HTMX library also supports a select element as part of the hx-location feature, which allows for more dynamic client-side redirections.References • HTMX hx-location documentation • django-htmx HttpResponseLocation source code
I am willing to implement this feature and submit a pull request for review.