Skip to content

Commit a8a7d27

Browse files
committed
Standardize history.pushstate args
1 parent a6c378f commit a8a7d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reactpy_router/static/link.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ document.querySelector(".UUID").addEventListener(
99

1010
// Deduplication needed due to ReactPy rendering bug
1111
if (new_url.href !== window.location.href) {
12-
window.history.pushState({}, to, new URL(to, window.location));
12+
window.history.pushState(null, "", new URL(to, window.location));
1313
}
1414
}
1515
},

0 commit comments

Comments
 (0)