Skip to content

Commit 245ae4d

Browse files
committed
Don't pushState, as we can't (easily) support popping state. Addresses compiler-explorer#1052
1 parent afcdbbe commit 245ae4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ require("monaco-loader")().then(function () {
296296
if (storedPaths[config]) {
297297
window.history.replaceState(null, null, storedPaths[config]);
298298
} else if (window.location.pathname !== window.httpRoot) {
299-
window.history.pushState(null, null, window.httpRoot);
299+
window.history.replaceState(null, null, window.httpRoot);
300300
}
301301
lastState = config;
302302
}

0 commit comments

Comments
 (0)