You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that it is now compulsory to specify target with the HX-Location e.g. {path: '/some-other-url/', target: '#content'}.
Previously, I think, HTMX was able to use the target specified in the parent element. This looks like either a bug, or a behavior change (which shouldn't happen for a minor point update IMHO).
I have a URL returning
HX-Location
like this:{path: '/some-other-url/'}
. Page is "redirected" to the new URL.This works fine in htmx 2.0.2, in 2.0.3 it breaks with
htmx:targetError
. Target is defined correctly in parent element.The text was updated successfully, but these errors were encountered: