bland-coat-6833
04/07/2022, 1:24 PMcareful-potato-89071
04/07/2022, 1:55 PMlate-king-98305
04/07/2022, 2:29 PM<form hx-post="/contact/<?=$id?>" hx-target="#content">. You would still need an hx-push-url attribute for that, but if your back end is htmx-aware, you can include the HX-Push header in the response to add to history (e.g., if you want to redisplay the form in case of errors, but go somewhere else if everything worked).late-king-98305
04/07/2022, 2:31 PMhx-boost, hx-target, and hx-push-url are inherited, you will likely see most examples that use them having them higher up in the page. That reduces the repetition, and then you can override them if you need something different.tall-dinner-62086
04/07/2022, 2:35 PMblue-gold-89534
04/07/2022, 2:46 PMgorgeous-ghost-95789
04/07/2022, 2:50 PMtall-dinner-62086
04/07/2022, 2:51 PMtall-dinner-62086
04/07/2022, 2:51 PMgorgeous-ghost-95789
04/07/2022, 2:52 PMcareful-potato-89071
04/07/2022, 2:53 PMhx-push-url to the form tag, i think ill just stick to that. i guess having boost grab from action like it grabs from href is more complicated than it seemsgorgeous-ghost-95789
04/07/2022, 2:54 PMtall-dinner-62086
04/07/2022, 2:55 PMgorgeous-ghost-95789
04/07/2022, 2:55 PMgorgeous-ghost-95789
04/07/2022, 2:56 PMtall-dinner-62086
04/07/2022, 2:56 PMcareful-potato-89071
04/07/2022, 3:09 PMcurrent_url when boosting behaves weird to me, can someone help me unpack? If I dump the headers from the server on a boosted response I end up seing boosted: true, current_url: X , and when i look at the content and address bar I see Y instead. meaning the current_url seems more like the previous url to mecareful-potato-89071
04/07/2022, 3:13 PMmysterious-toddler-20573
04/07/2022, 3:47 PMcurrent_url from where?mysterious-toddler-20573
04/07/2022, 3:47 PMcareful-potato-89071
04/07/2022, 3:47 PMmysterious-toddler-20573
04/07/2022, 3:47 PMHX-Current-URLcareful-potato-89071
04/07/2022, 3:47 PMmysterious-toddler-20573
04/07/2022, 3:48 PMmysterious-toddler-20573
04/07/2022, 3:48 PMmysterious-toddler-20573
04/07/2022, 3:48 PMcareful-potato-89071
04/07/2022, 3:48 PMmysterious-toddler-20573
04/07/2022, 3:48 PMmysterious-toddler-20573
04/07/2022, 3:49 PMmysterious-toddler-20573
04/07/2022, 3:49 PM