summaryrefslogtreecommitdiffstatshomepage
path: root/src/htmx.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/htmx.js')
-rw-r--r--src/htmx.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/htmx.js b/src/htmx.js
index f949da04..911b7dde 100644
--- a/src/htmx.js
+++ b/src/htmx.js
@@ -2323,7 +2323,7 @@ var htmx = (function() {
const rawAttribute = getRawAttribute(elt, 'method')
verb = (/** @type HttpVerb */(rawAttribute ? rawAttribute.toLowerCase() : 'get'))
path = getRawAttribute(elt, 'action')
- if (verb === 'get' && path.includes('?')) {
+ if (verb === 'get' && path && path.includes('?')) {
path = path.replace(/\?[^#]+/, '')
}
}