I use this code to open the popup editor.
<script>
function edit() {
var pop = window.open(' <?php echo get_edit_post_link(); ?> ', '_blank', 'screenX=200,screenY=200,width=1000,height=600');
}
</script>
<a href="" onclick="edit()" >Edit</a>
This returns this url: http://localhost/wordpress/wp-admin/post.php?post=122&action=edit
But it shows: http://localhost/wordpress/wp-admin/edit.php
The problems is this "%amp;"
Any solution?