diff --git a/src/Public/Pages.ps1 b/src/Public/Pages.ps1 index 9376fb93..0c86895b 100644 --- a/src/Public/Pages.ps1 +++ b/src/Public/Pages.ps1 @@ -822,6 +822,10 @@ function ConvertTo-PodeWebPage { [string] $Module, + [Parameter()] #Added by Keith 09/22/2025 to allow group names to be used with ConvertTo-PodeWebPage + [string] + $Group, + [switch] $GroupVerbs, @@ -985,11 +989,12 @@ function ConvertTo-PodeWebPage { New-PodeWebTab -Name $name -Content $card }) - $group = [string]::Empty - if ($GroupVerbs) { - $group = $cmdInfo.Verb - if ([string]::IsNullOrWhiteSpace($group)) { - $group = '_' + if ($group -eq [string]::Empty) { #Added by Keith 09/22/2025 to allow group names to be used with ConvertTo-PodeWebPage + if ($GroupVerbs) { + $group = $cmdInfo.Verb + if ([string]::IsNullOrWhiteSpace($group)) { + $group = '_' + } } }