improve performance of alias handling and allow aliases to be an unlimited number of subfolders in depth

This commit is contained in:
Shaun Walker
2020-05-05 09:15:36 -04:00
parent bf84f12471
commit a02cfea6c9
54 changed files with 320 additions and 586 deletions

View File

@ -1,4 +1,5 @@
using System;
using Oqtane.Models;
using System;
using System.Globalization;
using System.IO;
using System.Text;
@ -44,9 +45,9 @@ namespace Oqtane.Shared
return NavigateUrl(alias, path, parameters);
}
public static string ContentUrl(string alias, int fileid)
public static string ContentUrl(Alias alias, int fileid)
{
string url = (alias == "") ? "/~" : alias;
string url = (alias == null) ? "/~" : "/" + alias.AliasId;
url += Constants.ContentUrl + fileid.ToString();
return url;
}