use window.pushState instead

main
Mike Fix 5 years ago
parent 783b0f7a9f
commit 0ee3df5792

@ -64,7 +64,8 @@ function EditorContainer(props) {
if ('/' + (snippetId || '') === props.router.asPath) {
return
}
props.router.replace('/', '/' + (snippetId || ''), { shallow: true })
window.history.pushState(null, null, '/' + (snippetId || ''))
// props.router.replace(props.router.asPath, '/' + (snippetId || ''), { shallow: true })
}, [snippetId, props.router])
function onEditorUpdate(state) {

Loading…
Cancel
Save