No history writes in media/editor, fix back nav on popstate