allow admin to navigate to site settings for deleted site

This commit is contained in:
sbwalker 2023-06-28 13:11:15 -04:00
parent c55c8bff6e
commit 8edc4fd67a

View File

@ -114,7 +114,7 @@ namespace Oqtane.Pages
}
var site = _sites.InitializeSite(alias);
if (site != null && !site.IsDeleted && site.Runtime != "Hybrid")
if (site != null && (!site.IsDeleted || url.Contains("admin/site")) && site.Runtime != "Hybrid")
{
Route route = new Route(url, alias.Path);