The GroupInfo class is used to represent a settings part in the menu.
If the settings part has a space in the name then the url does too:
context.Metadata.EditorGroupInfo.Add(new GroupInfo(T("Audit Trail")));
Results in /Admin/Settings/Audit Trail/ which works but isn't correct.
From my simple testing .HtmlClassify() seems to create a better url.
Is there a more appropriate helper method tucked away somewhere in Orchard? If not I will create a PR.
The GroupInfo class is used to represent a settings part in the menu.
If the settings part has a space in the name then the url does too:
Results in
/Admin/Settings/Audit Trail/which works but isn't correct.From my simple testing .HtmlClassify() seems to create a better url.
Is there a more appropriate helper method tucked away somewhere in Orchard? If not I will create a PR.