add sitemap generator which outputs all public pages and also includes an ISitemap interface for modules

This commit is contained in:
Shaun Walker
2023-02-20 08:35:46 -05:00
parent d1d00e6c98
commit 8c6c66fb11
7 changed files with 160 additions and 8 deletions

View File

@ -190,12 +190,7 @@ namespace Oqtane.Modules
public string AddUrlParameters(params object[] parameters)
{
var url = "";
for (var i = 0; i < parameters.Length; i++)
{
url += "/" + parameters[i].ToString();
}
return url;
return Utilities.AddUrlParameters(parameters);
}
// template is in the form of a standard route template ie. "/{id}/{name}" and produces dictionary of key/value pairs