diff --git a/src/FluentCMS.Web.UI/AppState.cs b/src/FluentCMS.Web.UI/AppState.cs index b2966814c..2526f9007 100644 --- a/src/FluentCMS.Web.UI/AppState.cs +++ b/src/FluentCMS.Web.UI/AppState.cs @@ -1,6 +1,5 @@ using FluentCMS.Api.Models; using FluentCMS.Entities; -using Microsoft.AspNetCore.Components; namespace FluentCMS.Web.UI; @@ -11,17 +10,5 @@ public class AppState public Layout? Layout { get; set; } public string? Route { get; set; } public Uri? Uri { get; set; } - public string Host { get; set; } - - public AppState() - { - - } - - public AppState(NavigationManager navigation) - { - Host = navigation.BaseUri; - if (Host.EndsWith("/")) - Host = Host.Substring(0, Host.Length - 1); - } + public string Host { get; set; } = default!; }