Clarity Posted June 3, 2022 Share Posted June 3, 2022 Hello everyone! I'm using htmx to send a form to /scan URL, but no "search" parameter is present in "get" in $input variable: <form hx-get="/scan" hx-trigger="submit" hx-target="#result" hx-swap="outerHTML" id="scan-form"> <input type="text" name="search"> <input type="submit"> </form> Can you please tell me where is my mistake? Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted June 3, 2022 Share Posted June 3, 2022 You send you request to /scan without the ending slash. ProcessWire by default redirects to a url with an ending slash. And all parameters get lost during the redirect. 2 1 Link to comment Share on other sites More sharing options...
Clarity Posted June 3, 2022 Author Share Posted June 3, 2022 Thank you, @Ivan Gretsky! It is right. Link to comment Share on other sites More sharing options...
Recommended Posts