diff --git a/modules/mod_menu/helper.php b/modules/mod_menu/helper.php index 361cf7b7cb86b..283765288b1f6 100644 --- a/modules/mod_menu/helper.php +++ b/modules/mod_menu/helper.php @@ -97,8 +97,17 @@ public static function getList(&$params) break; case 'alias': - // If this is an alias use the item id stored in the parameters to make the link. - $item->flink = 'index.php?Itemid=' . $item->params->get('aliasoptions'); + $aliasItem = $menu->getItem($item->params->get('aliasoptions')); + + if ($aliasItem->type == 'url') + { + $item->flink = $aliasItem->link; + } + else + { + // If this is an alias use the item id stored in the parameters to make the link. + $item->flink = 'index.php?Itemid=' . $item->params->get('aliasoptions'); + } break; default: