Index: wp-admin/includes/bookmark.php
===================================================================
--- wp-admin/includes/bookmark.php	(revision 50444)
+++ wp-admin/includes/bookmark.php	(working copy)
@@ -342,9 +342,33 @@
 	remove_filter( 'pre_option_link_manager_enabled', '__return_true', 100 );
 
 	if ( $really_can_manage_links && current_user_can( 'install_plugins' ) ) {
-		$link = network_admin_url( 'plugin-install.php?tab=search&amp;s=Link+Manager' );
-		/* translators: %s: URL to install the Link Manager plugin. */
-		wp_die( sprintf( __( 'If you are looking to use the link manager, please install the <a href="%s">Link Manager</a> plugin.' ), $link ) );
+
+		require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
+
+		$link_manager_plugin = plugins_api( 'plugin_information', [ 'slug' => 'link-manager' ] );
+		$plugin_status       = install_plugin_install_status( $link_manager_plugin );
+
+		if ( 'install' === $plugin_status['status'] ) {
+			$link = $plugin_status['url'];
+
+			/* translators: %s: URL to install the Link Manager plugin. */
+			wp_die( sprintf( __( 'If you are looking to use the link manager, please install the <a href="%s">Link Manager</a> plugin.' ), $link ) );
+		}
+
+		if ( 'latest_installed' === $plugin_status['status'] && ! is_plugin_active( $plugin_status['file'] ) ) {
+			$link = add_query_arg(
+				array(
+					'_wpnonce' => wp_create_nonce( 'activate-plugin_' . $plugin_status['file'] ),
+					'action'   => 'activate',
+					'plugin'   => $plugin_status['file'],
+				),
+				network_admin_url( 'plugins.php' )
+			);
+
+			/* translators: %s: URL to activate the Link Manager plugin. */
+			wp_die( sprintf( __( 'If you are looking to use the link manager, please activate the <a href="%s">Link Manager</a> plugin.' ), $link ) );
+		}
+
 	}
 
 	wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) );
