diff --git a/src/Umbraco.Web.UI.NetCore/Umbraco/UmbracoBackOffice/Default.cshtml b/src/Umbraco.Web.UI.NetCore/Umbraco/UmbracoBackOffice/Default.cshtml deleted file mode 100644 index 55959c27a8..0000000000 --- a/src/Umbraco.Web.UI.NetCore/Umbraco/UmbracoBackOffice/Default.cshtml +++ /dev/null @@ -1,128 +0,0 @@ -@using Umbraco.Core -@using Umbraco.Web.WebAssets -@using Umbraco.Web.Common.Security -@using Umbraco.Core.WebAssets -@using Umbraco.Core.Configuration -@using Umbraco.Core.Hosting -@using Umbraco.Extensions -@using Umbraco.Core.Logging -@using Umbraco.Web.BackOffice.Controllers -@inject BackOfficeSignInManager signInManager -@inject BackOfficeServerVariables backOfficeServerVariables -@inject IUmbracoVersion umbracoVersion -@inject IHostingEnvironment hostingEnvironment -@inject IGlobalSettings globalSettings -@inject IRuntimeMinifier runtimeMinifier -@inject IProfilerHtml profilerHtml - -@{ - var isDebug = false; - var qryDebug = Context.Request.Query["umbDebug"].ToString().TryConvertTo(); - isDebug = qryDebug.Success && qryDebug.Result; - var backOfficePath = globalSettings.GetBackOfficePath(hostingEnvironment); -} - - - - - - - - - - - - - - Umbraco - - @Html.Raw(await runtimeMinifier.RenderCssHereAsync(BackOfficeWebAssets.UmbracoInitCssBundleName)) - - - - - - -
- - - - - - - - - - - -
- - - - - - - - - - - - - @await Html.BareMinimumServerVariablesScriptAsync(backOfficeServerVariables) - - - - - - - @if (isDebug) - { - @Html.Raw(profilerHtml.Render()) - } - - - diff --git a/src/Umbraco.Web.UI.NetCore/Umbraco/UmbracoBackOffice/AuthorizeUpgrade.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/AuthorizeUpgrade.cshtml similarity index 100% rename from src/Umbraco.Web.UI.NetCore/Umbraco/UmbracoBackOffice/AuthorizeUpgrade.cshtml rename to src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/AuthorizeUpgrade.cshtml diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Default.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Default.cshtml index d399817502..c71957e77d 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Default.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Default.cshtml @@ -16,9 +16,7 @@ @inject IProfilerHtml profilerHtml @{ - var isDebug = false; - var qryDebug = Context.Request.Query["umbDebug"].TryConvertTo(); - isDebug = qryDebug.Success && qryDebug.Result; + bool.TryParse(Context.Request.Query["umbDebug"], out bool isDebug); var backOfficePath = globalSettings.GetBackOfficePath(hostingEnvironment); }