diff --git a/Oqtane.Client/UI/Routes.razor b/Oqtane.Client/UI/Routes.razor
index 9c876544..051f7f21 100644
--- a/Oqtane.Client/UI/Routes.razor
+++ b/Oqtane.Client/UI/Routes.razor
@@ -16,11 +16,20 @@
{
@if (string.IsNullOrEmpty(_installation.Message))
{
-
+ if (PageState.RenderMode == RenderModes.Static)
+ {
-
+ }
+ else
+ {
+
+
+
+
+
+ }
}
else
{
@@ -54,7 +63,7 @@
HttpContext HttpContext { get; set; }
private bool _initialized = false;
- private string _display = "";
+ private string _display = "display: none;";
private Installation _installation = new Installation { Success = false, Message = "" };
private PageState _pageState { get; set; }
@@ -66,11 +75,6 @@
_pageState = PageState;
}
- if (RenderMode == RenderModes.Interactive)
- {
- _display = "display: none;";
- }
-
SiteState.AntiForgeryToken = AntiForgeryToken;
SiteState.AuthorizationToken = AuthorizationToken;
SiteState.RemoteIPAddress = (_pageState != null) ? _pageState.RemoteIPAddress : "";