mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 23:35:13 +00:00
use the current URL if the path is missing or empty, like anchors do
This commit is contained in:
parent
573b53f8d3
commit
59444e8f44
@ -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 = {
|
var requestConfig = {
|
||||||
parameters: filteredParameters,
|
parameters: filteredParameters,
|
||||||
unfilteredParameters:rawParameters,
|
unfilteredParameters:rawParameters,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user