morning of fail - history now with correct url

This commit is contained in:
Remy Sharp 2013-10-17 09:48:15 +01:00
parent 2f9798520f
commit b98ca4e132

View File

@ -277,7 +277,7 @@ function saveCode(method, ajax, ajaxCallback) {
if (window.history && window.history.pushState) {
// updateURL(edit);
window.history.pushState(null, '', jsbin.getURL());
window.history.pushState(null, '', jsbin.getURL() + '/edit');
sessionStorage.setItem('url', jsbin.getURL());
} else {
window.location.hash = data.edit;