package management modifications

This commit is contained in:
Shaun Walker
2021-06-24 18:02:01 -04:00
parent 161ab56701
commit 52bcdb12c5
5 changed files with 126 additions and 125 deletions

View File

@ -172,13 +172,8 @@
}
// format path and remove alias
path = path.Replace("//", "/");
if (!path.EndsWith("/"))
{
path += "/";
}
path = path.Replace("//", "/"); // in case of doubleslash at end
path += (!path.EndsWith("/")) ? "/" : "";
if (SiteState.Alias.Path != "" && path.StartsWith(SiteState.Alias.Path))
{
path = path.Substring(SiteState.Alias.Path.Length + 1);