| 1 | using AgentForge.Abstractions; |
| 2 | |
| 3 | namespace AgentForge.Plugin.Org.Web.Components; |
| 4 | |
| 5 | internal static class ForgeViewOrgCatalogLinks |
| 6 | { |
| 7 | internal static string Build(string catalogBasePath, string? groupPath) |
| 8 | { |
| 9 | if (string.IsNullOrWhiteSpace(groupPath)) |
| 10 | return catalogBasePath; |
| 11 | |
| 12 | return $"{catalogBasePath}?group={Uri.EscapeDataString(ForgeRepoGroupPath.ToUrlPath(groupPath))}"; |
| 13 | } |
| 14 | } |
| 15 |