diff --git a/src/Geta.Optimizely.Sitemaps/Pages/Geta.Optimizely.Sitemaps/Index.cshtml b/src/Geta.Optimizely.Sitemaps/Pages/Geta.Optimizely.Sitemaps/Index.cshtml index d75299ff..4138f5ba 100644 --- a/src/Geta.Optimizely.Sitemaps/Pages/Geta.Optimizely.Sitemaps/Index.cshtml +++ b/src/Geta.Optimizely.Sitemaps/Pages/Geta.Optimizely.Sitemaps/Index.cshtml @@ -35,14 +35,15 @@ { - @if (Model.ShowHostsLabel) - { - - } @if (Model.ShowHostsDropDown) { } + else + { + + + } sitemap.xml

Language: @@ -136,14 +137,15 @@
- @if (Model.ShowHostsLabel) - { - - } @if (Model.ShowHostsDropDown) { } + else + { + + + } sitemap.xml

diff --git a/src/Geta.Optimizely.Sitemaps/Pages/Geta.Optimizely.Sitemaps/Index.cshtml.cs b/src/Geta.Optimizely.Sitemaps/Pages/Geta.Optimizely.Sitemaps/Index.cshtml.cs index cbcbc05d..f2f3abdd 100644 --- a/src/Geta.Optimizely.Sitemaps/Pages/Geta.Optimizely.Sitemaps/Index.cshtml.cs +++ b/src/Geta.Optimizely.Sitemaps/Pages/Geta.Optimizely.Sitemaps/Index.cshtml.cs @@ -41,7 +41,6 @@ public IndexModel( [BindProperty] public IList SiteHosts { get; set; } public bool ShowHostsDropDown { get; set; } public string HostLabel { get; set; } - public bool ShowHostsLabel { get; set; } [BindProperty] public IList LanguageBranches { get; set; } protected int EditIndex { get; set; } protected InsertItemPosition InsertItemPosition { get; set; } @@ -198,7 +197,6 @@ private void PopulateHostListControl() else { HostLabel = SiteHosts.ElementAt(0).Value; - ShowHostsLabel = true; } }