Skip to content

Commit 835a42f

Browse files
lbogdanCompuIves
authored andcommitted
Fixed overridden history.go() to sendUrlChange(). (codesandbox#634)
1 parent b3a9734 commit 835a42f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/app/src/sandbox/url-listeners.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export default function setupHistoryListeners() {
3737
const oldURL = document.location.href;
3838
origHistoryProto.replaceState.call(window.history, state, '', url);
3939
const newURL = document.location.href;
40+
sendUrlChange(newURL);
4041
if (newURL.indexOf('#') === -1) {
4142
window.dispatchEvent(new PopStateEvent('popstate', { state }));
4243
} else {

0 commit comments

Comments
 (0)