create server-side SiteService

This commit is contained in:
sbwalker
2024-02-15 15:48:18 -05:00
parent 7d1b4d916e
commit ed7904b673
9 changed files with 347 additions and 226 deletions

View File

@ -23,7 +23,11 @@ namespace Oqtane.Infrastructure
var config = context.RequestServices.GetService(typeof(IConfigManager)) as IConfigManager;
string path = context.Request.Path.ToString();
if (config.IsInstalled() && !path.StartsWith("/_")) // ignore Blazor framework requests
// note that in order to support Alias subfolders we used to ignore Blazor framework requests...
// but this does not work in static rendering as the web UI request originates from /_blazor
//if (config.IsInstalled() && !path.StartsWith("/_"))
if (config.IsInstalled())
{
// get alias (note that this also sets SiteState.Alias)
var tenantManager = context.RequestServices.GetService(typeof(ITenantManager)) as ITenantManager;