We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would like to propose a feature related to the http header HX-Redirect: would it be possible to send back(-x) instead of an url?
back(-x)
Use case:
The text was updated successfully, but these errors were encountered:
Personally I would prefer a more explicit approach to header magic, such as:
hx-on::after-request="if (event.detail.successful) history.back()"
If you’re bent on keeping the logic server-side, you might send <script>history.back();</script>, but client-side seems preferable to me.
<script>history.back();</script>
Sorry, something went wrong.
No branches or pull requests
I would like to propose a feature related to the http header HX-Redirect: would it be possible to send
back(-x)
instead of an url?Use case:
The text was updated successfully, but these errors were encountered: