Generated with the help of an LLM.

I used Claude to help write this summary. I reviewed it myself.

Problem/Motivation

Follow-up from #3601068, as @alexpott suggested there.

hx-boost applies to every same-origin link in a region, and htmx only checks the scheme and host, not Drupal's base path. Take a site with Drupal in
/drupal/ and a boosted menu that links to /other-app/ on the same host. htmx cancels the normal click (preventDefault() in
#handleTriggerEvent, before htmx:config:request fires). Since #3601068 the htmx request is then cancelled as non-local and an error is logged, so the
click does nothing.

Before #3601068 the other app's <body> was swapped into the Drupal page, which was also broken.

Proposed resolution

For a boosted link whose URL is not local to Drupal, fall back to a normal page navigation (window.location.assign()) instead of only cancelling the request.
Non-boosted htmx requests keep the current behaviour.

Remaining tasks

Agree on the approach, then an MR with a FunctionalJavascript test next to HtmxLocalUrlTest.

Comments

deruina created an issue.