Skip to content

Commit 04d6c72

Browse files
fix stale currentPathForHistory issue (#3451)
* fix stale currentPathForHistory issue * Update Node Versions and types to fix latest tsc upgrade issues (#3455) * Update Node Versions and types to fix latest tsc upgrade issues * fix playwright only test filtering that has broken from playwright browser updates --------- Co-authored-by: MichaelWest22 <michael.west@docuvera.com> * fix stale currentPathForHistory issue --------- Co-authored-by: MichaelWest22 <michael.west@docuvera.com>
1 parent 5629997 commit 04d6c72

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/htmx.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3126,7 +3126,7 @@ var htmx = (function() {
31263126
//= ===================================================================
31273127
// History Support
31283128
//= ===================================================================
3129-
let currentPathForHistory = location.pathname + location.search
3129+
let currentPathForHistory
31303130

31313131
/**
31323132
* @param {string} path
@@ -3138,6 +3138,8 @@ var htmx = (function() {
31383138
}
31393139
}
31403140

3141+
setCurrentPathForHistory(location.pathname + location.search)
3142+
31413143
/**
31423144
* @returns {Element}
31433145
*/

0 commit comments

Comments
 (0)