fixed issue with module settings tab and module creator templating

This commit is contained in:
Shaun Walker
2020-04-07 17:25:57 -04:00
parent 0714ba9ece
commit c29195b417
4 changed files with 12 additions and 18 deletions

View File

@ -30,25 +30,15 @@ namespace Oqtane.Shared
public static string EditUrl(string alias, string path, int moduleid, string action, string parameters)
{
string url = NavigateUrl(alias, path, "");
if (url == "/") url = "";
if (moduleid != -1)
{
url += "/" + moduleid.ToString();
path += $"/{moduleid}";
if (!string.IsNullOrEmpty(action))
{
path += $"/{action}";
}
}
if (moduleid != -1 && action != "")
{
url += "/" + action;
}
if (!string.IsNullOrEmpty(parameters))
{
url += "?" + parameters;
}
if (!url.StartsWith("/"))
{
url = "/" + url;
}
return url;
return NavigateUrl(alias, path, parameters);
}
public static string ContentUrl(string alias, int fileid)