From a7a5fdb7f54133d676f21f47a378f263be78eac0 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Tue, 6 Feb 2024 11:28:37 -0500 Subject: [PATCH] temporary hack to allow Static rendering to (sort of) work - this will need to be removed later --- Oqtane.Client/UI/Routes.razor | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Oqtane.Client/UI/Routes.razor b/Oqtane.Client/UI/Routes.razor index 449d6357..ff1756b3 100644 --- a/Oqtane.Client/UI/Routes.razor +++ b/Oqtane.Client/UI/Routes.razor @@ -69,11 +69,13 @@ SiteState.AuthorizationToken = AuthorizationToken; SiteState.IsPrerendering = (HttpContext != null) ? true : false; - _installation = await InstallationService.IsInstalled(); - if (_installation.Alias != null) - { - SiteState.Alias = _installation.Alias; - } + _installation = new Installation { Success = true }; + SiteState.Alias = new Alias { AliasId = 1, SiteId = 1, TenantId = 1, Name = "localhost:44357", IsDefault = true, BaseUrl = "", Protocol = "http://" }; + // _installation = await InstallationService.IsInstalled(); + // if (_installation.Alias != null) + // { + // SiteState.Alias = _installation.Alias; + // } _initialized = true; }