diff --git a/src/Umbraco.Web.UI.Client/src/less/login.less b/src/Umbraco.Web.UI.Client/src/less/login.less
index c94414df10..751ea8f3f0 100644
--- a/src/Umbraco.Web.UI.Client/src/less/login.less
+++ b/src/Umbraco.Web.UI.Client/src/less/login.less
@@ -8,7 +8,7 @@
background-size: 30px 30px !important;
color: @white;
position: absolute;
- z-index: 2000;
+ z-index: 10000;
top: 0px;
left: 0px;
margin: 0 !Important;
diff --git a/src/Umbraco.Web/Models/Mapping/ContentModelMapper.cs b/src/Umbraco.Web/Models/Mapping/ContentModelMapper.cs
index 2e524fc480..a67fb5cb99 100644
--- a/src/Umbraco.Web/Models/Mapping/ContentModelMapper.cs
+++ b/src/Umbraco.Web/Models/Mapping/ContentModelMapper.cs
@@ -116,8 +116,30 @@ namespace Umbraco.Web.Models.Mapping
{
//map the IsChildOfListView (this is actually if it is a descendant of a list view!)
//TODO: Fix this shorthand .Ancestors() lookup, at least have an overload to use the current
- var ancesctorListView = content.Ancestors().FirstOrDefault(x => x.ContentType.IsContainer);
- display.IsChildOfListView = ancesctorListView != null;
+ if (content.HasIdentity)
+ {
+ var ancesctorListView = content.Ancestors().FirstOrDefault(x => x.ContentType.IsContainer);
+ display.IsChildOfListView = ancesctorListView != null;
+ }
+ else
+ {
+ //it's new so it doesn't have a path, so we need to look this up by it's parent + ancestors
+ var parent = content.Parent();
+ if (parent == null)
+ {
+ display.IsChildOfListView = false;
+ }
+ else if (parent.ContentType.IsContainer)
+ {
+ display.IsChildOfListView = true;
+ }
+ else
+ {
+ var ancesctorListView = parent.Ancestors().FirstOrDefault(x => x.ContentType.IsContainer);
+ display.IsChildOfListView = ancesctorListView != null;
+ }
+ }
+
//map the tree node url
if (HttpContext.Current != null)
diff --git a/src/Umbraco.Web/Security/Identity/GetUserSecondsMiddleWare.cs b/src/Umbraco.Web/Security/Identity/GetUserSecondsMiddleWare.cs
index d909ff76e2..f9b9fc0ca6 100644
--- a/src/Umbraco.Web/Security/Identity/GetUserSecondsMiddleWare.cs
+++ b/src/Umbraco.Web/Security/Identity/GetUserSecondsMiddleWare.cs
@@ -83,7 +83,7 @@ namespace Umbraco.Web.Security.Identity
var cookieOptions = new CookieOptions
{
Path = "/",
- Domain = _authOptions.CookieDomain,
+ Domain = _authOptions.CookieDomain ?? "FALSE",
Expires = DateTime.Now.AddMinutes(_authOptions.LoginTimeoutMinutes),
HttpOnly = true,
Secure = _authOptions.CookieSecure == CookieSecureOption.Always