mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-03 15:55:39 +00:00
small improvement
This commit is contained in:
parent
7e7a5b4361
commit
de78dc0070
@ -2885,6 +2885,7 @@ return (function () {
|
|||||||
//===========================================
|
//===========================================
|
||||||
// Next resolve via DOM values
|
// Next resolve via DOM values
|
||||||
//===========================================
|
//===========================================
|
||||||
|
var requestPath = responseInfo.pathInfo.finalRequestPath;
|
||||||
var responsePath = responseInfo.pathInfo.responsePath;
|
var responsePath = responseInfo.pathInfo.responsePath;
|
||||||
|
|
||||||
var pushUrl = getClosestAttributeValue(elt, "hx-push-url");
|
var pushUrl = getClosestAttributeValue(elt, "hx-push-url");
|
||||||
@ -2902,7 +2903,7 @@ return (function () {
|
|||||||
path = replaceUrl;
|
path = replaceUrl;
|
||||||
} else if (elementIsBoosted) {
|
} else if (elementIsBoosted) {
|
||||||
saveType = "push";
|
saveType = "push";
|
||||||
path = responsePath;
|
path = responsePath || requestPath; // if there is no response path, go with the original request path
|
||||||
}
|
}
|
||||||
|
|
||||||
if (path) {
|
if (path) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user