diff --git a/src/Umbraco.Web.UI/Umbraco/Views/AuthorizeUpgrade.cshtml b/src/Umbraco.Web.UI/Umbraco/Views/AuthorizeUpgrade.cshtml index c17e69a2d5..8142cf98f2 100644 --- a/src/Umbraco.Web.UI/Umbraco/Views/AuthorizeUpgrade.cshtml +++ b/src/Umbraco.Web.UI/Umbraco/Views/AuthorizeUpgrade.cshtml @@ -11,7 +11,7 @@ @using Umbraco.Web @using Umbraco.Web.Editors @using umbraco -@inherits System.Web.Mvc.WebViewPage +@inherits System.Web.Mvc.WebViewPage @{ Layout = null; diff --git a/src/Umbraco.Web.UI/umbraco/Views/Default.cshtml b/src/Umbraco.Web.UI/umbraco/Views/Default.cshtml index a63fd3c670..7ee7e638dd 100644 --- a/src/Umbraco.Web.UI/umbraco/Views/Default.cshtml +++ b/src/Umbraco.Web.UI/umbraco/Views/Default.cshtml @@ -12,7 +12,7 @@ @using Umbraco.Web.Editors @using umbraco -@inherits System.Web.Mvc.WebViewPage +@inherits System.Web.Mvc.WebViewPage @{ var isDebug = false; @@ -37,7 +37,7 @@ - + diff --git a/src/Umbraco.Web/Editors/BackOfficeController.cs b/src/Umbraco.Web/Editors/BackOfficeController.cs index 856e1d9ec0..1a571a7bcb 100644 --- a/src/Umbraco.Web/Editors/BackOfficeController.cs +++ b/src/Umbraco.Web/Editors/BackOfficeController.cs @@ -38,7 +38,7 @@ using Constants = Umbraco.Core.Constants; namespace Umbraco.Web.Editors { - public class AuthorizeUpgradeModel + public class BackOfficeModel { public string Path { get; set; } } @@ -75,8 +75,8 @@ namespace Umbraco.Web.Editors public async Task Default() { return await RenderDefaultOrProcessExternalLoginAsync( - () => View(GlobalSettings.Path.EnsureEndsWith('/') + "Views/Default.cshtml"), - () => View(GlobalSettings.Path.EnsureEndsWith('/') + "Views/Default.cshtml")); + () => View(GlobalSettings.Path.EnsureEndsWith('/') + "Views/Default.cshtml", new BackOfficeModel { Path = GlobalSettings.Path }), + () => View(GlobalSettings.Path.EnsureEndsWith('/') + "Views/Default.cshtml", new BackOfficeModel { Path = GlobalSettings.Path })); } /// @@ -89,7 +89,7 @@ namespace Umbraco.Web.Editors { return await RenderDefaultOrProcessExternalLoginAsync( //The default view to render when there is no external login info or errors - () => View(GlobalSettings.Path.EnsureEndsWith('/') + "Views/AuthorizeUpgrade.cshtml", new AuthorizeUpgradeModel { Path = GlobalSettings.Path}), + () => View(GlobalSettings.Path.EnsureEndsWith('/') + "Views/AuthorizeUpgrade.cshtml", new BackOfficeModel { Path = GlobalSettings.Path}), //The ActionResult to perform if external login is successful () => Redirect("/")); }