diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php
index e77a88069c..58d06eabc3 100644
--- a/html/includes/functions.inc.php
+++ b/html/includes/functions.inc.php
@@ -829,7 +829,7 @@ function generate_ap_link($args, $text = null, $type = null)
{
global $config;
- $args = ifNameDescr($args);
+ $args = cleanPort($args);
if (!$text) {
$text = fixIfName($args['label']);
}