| branch | new-model |
| changeset 910 | b9f1bd52df9a |
| parent 906 | 4b6e154ae8de |
| child 1072 | ac1eacb3aa33 |
--- a/src/js/iframe_embed/embedder.js Tue Jun 05 17:55:24 2012 +0200 +++ b/src/js/iframe_embed/embedder.js Tue Jun 05 20:55:42 2012 +0200 @@ -23,7 +23,11 @@ window.addEventListener('message', function(_e) { if (/^#/.test(_e.data) && !_blocked) { - document.location.hash = _e.data; + if (typeof window.history !== "undefined" && typeof window.history.replaceState !== "undefined") { + window.history.replaceState({}, "", _e.data); + } else { + document.location.hash = _e.data; + } } });