gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Link inside a metabox is opened on the metabox container.

Open kmgalanakis opened this issue 9 years ago • 2 comments

When clicking a link from inside a metabox, the link page opens inside the metabox container.

Test Code

add_action( 'admin_head', 'my_meta_box' );

function my_meta_box() {
	global $post;
	add_meta_box( 
		'my_meta_box', 
		__( 'My metabox', 'my-context' ), 
		'my_meta_box_callback', 
		$post->post_type, 'side' 
	);
}

function my_meta_box_callback() {
    echo '<p>Lorem ipsum dolor sit amet.</p>';
    echo '<a href="https://wordpress.org/">wordpress.org</a>';
}

kmgalanakis avatar Oct 30 '17 15:10 kmgalanakis

Related: calls to open the media modal via wp.media results in the modal being loaded inside of the iframe.

christopherabalos avatar Oct 31 '17 17:10 christopherabalos

Hi kmgalanakis,

Thank you for the report again. I believe there are ways to get around this. We can try them out, and see if that improves the situation.

BE-Webdesign avatar Nov 02 '17 15:11 BE-Webdesign