Skip to content

Commit

Permalink
fix url href
Browse files Browse the repository at this point in the history
  • Loading branch information
juanSTIC committed Dec 20, 2024
1 parent a51b24b commit 15c83d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SticInclude/SticAdvancedMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function generateMenu($items, $isFirstLevel = true, $validTabs = null)
$itemHtml .= "<a href='index.php?module={$cleanId}&action=index'>$iconString $text </a>";
} elseif ($item['url']) {
// Generate external link for items with custom URLs
$itemHtml .= "<a title='{$item['url']}' target='_blank' href='$itemURL'><span class='glyphicon glyphicon-link'></span> $text </a>";
$itemHtml .= "<a title='{$item['url']}' target='_blank' href='{$item['url']}'><span class='glyphicon glyphicon-link'></span> $text </a>";
} elseif ($hasChildren) {
// Generate dropdown toggle for items with children
$itemHtml .= "<a href='#' class='no-link'>" . $text . '</a>';
Expand Down

0 comments on commit 15c83d1

Please sign in to comment.