• 99% of the time, when you click “View” to see a broken link on the page, you also want to keep the WP admin open in order to fix the link.

    Therefore, it would be natural if the “View” link in the “Source” column opened in a new tab.

    Just my personal opinion.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @ant123

    I hope you are doing well.

    Our developers are working on some big updates for the broken link checker plugin, we can’t give an estimated time to release this new Engine but can you use this script as a temporary solution?

    <?php
    
    add_action( 'admin_footer', function(){
    
    	global $pagenow;
    
    	if( $pagenow == 'tools.php' && $_GET['page'] == 'view-broken-links' ){
    		echo "
    			<script>
    				jQuery(document).ready(function(){
    					jQuery('.column-used-in a').attr('target', '_blank');
    				});
    			</script>
    		";
    	}
    
    }, 21 );

    You can use it as a mu-plugin https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    Best Regards
    Patrick Freitas

Viewing 1 replies (of 1 total)

The topic ‘Open “View” link in new tab’ is closed to new replies.