Skip to content

Commit

Permalink
Slightly improve HttpResponseClientRedirect documentation (#502)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Johnson <[email protected]>
  • Loading branch information
mahiuddin-dev and adamchainz authored Jan 6, 2025
1 parent 176f304 commit b956c1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/http.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Response classes

.. autoclass:: HttpResponseClientRedirect

htmx can trigger a client side redirect when it receives a response with the |HX-Redirect header|__.
``HttpResponseClientRedirect`` is a `HttpResponseRedirect <https://docs.djangoproject.com/en/stable/ref/request-response/#django.http.HttpResponseRedirect>`__ subclass for triggering such redirects.
htmx can trigger a client-side redirect when it receives a response with the |HX-Redirect header|__.
``HttpResponseClientRedirect`` is a subclass of `HttpResponseRedirect <https://docs.djangoproject.com/en/stable/ref/request-response/#django.http.HttpResponseRedirect>`__ for triggering such redirects.

.. |HX-Redirect header| replace:: ``HX-Redirect`` header
__ https://htmx.org/reference/#response_headers
Expand Down

0 comments on commit b956c1b

Please sign in to comment.