mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-29 22:11:22 +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 = {
|
||||
parameters: filteredParameters,
|
||||
unfilteredParameters:rawParameters,
|
||||
|
Loading…
x
Reference in New Issue
Block a user