diff --git a/libraries/advisor.class.php b/libraries/advisor.class.php
index a45c76c012..ca9fb6f61f 100644
--- a/libraries/advisor.class.php
+++ b/libraries/advisor.class.php
@@ -140,11 +140,18 @@ class Advisor
$rule['name'] = $this->translate($rule['name']);
$rule['issue'] = $this->translate($rule['issue']);
+ // Replaces {server_variable} with 'server_variable' linking to server_variables.php
$rule['recommendation'] = preg_replace(
'/\{([a-z_0-9]+)\}/Ui',
- '\1',
+ '\1',
$this->translate($rule['recommendation']));
+ // Replaces external Links with PMA_linkURL() generated links
+ $rule['recommendation'] = preg_replace(
+ '#href=("|\')(https?://[^\1]+)\1#ie',
+ '\'href="\' . PMA_linkURL("\2") . \'"\'',
+ $rule['recommendation']
+ );
break;
}