-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
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
[bug] hx-boost: form with get method keeps appending param in the URL #1788
Comments
related #485 , |
Yup, I think that's a bug too. We'll get this prioritized. |
I've encountered this too. I was wondering why my get-form broke when I added Htmx, and it seems to be because appending to the query string (instead of replacing it) results in multiple, often inconsistent specifications of the same variables in the Url. |
I had the same problem but changing from |
Is there a plan to fix this issue? I would love to help, but I saw the PR that already tried to fix this was closed. |
have you tried the non-empty URL e.g. |
I'm using hx-boost on the body element so it applies to everything. |
Not sure this helps but having |
Hi, |
Summary
Given a form with method GET to implement a search with a param named
query
.After submit the form, the param is appended to the URL. This is fine, but after each form submit the
query
param keeps getting appended in the URL resulting in multiple identical params appended.Version
Version 1.9.5 (not tested in previous versions)
Reproducer
Given a simple form (search form) with method GET:
Without
hx-boost
URL is becomes?query=<query1>
With
hx-boost
, the query keeps getting appended after every form submit resulting in:?query=test&query=test ...
Expected
I would have expected the query not to be appended, it should honor the form action resulting in always one
query=<query>
The text was updated successfully, but these errors were encountered: