Skip to content

Orchard.Framework - Using GroupInfo() class generates urls with spaces in it #7155

@rtpHarry

Description

@rtpHarry

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions