use the current URL if the path is missing or empty, like anchors do
This commit is contained in:
carson 2020-05-22 18:25:31 -07:00
parent 573b53f8d3
commit 59444e8f44

View File

@ -1164,6 +1164,11 @@ var htmx = htmx || (function () {
}
}
// behavior of anchors w/ empty href is to use the current URL
if (path == null || path === "") {
path = getDocument().location.href;
}
var requestConfig = {
parameters: filteredParameters,
unfilteredParameters:rawParameters,