diff --git a/src/Umbraco.Web.UI/config/umbracoSettings.Release.config b/src/Umbraco.Web.UI/config/umbracoSettings.Release.config
index 00b556fd34..fa998a9856 100644
--- a/src/Umbraco.Web.UI/config/umbracoSettings.Release.config
+++ b/src/Umbraco.Web.UI/config/umbracoSettings.Release.config
@@ -1,113 +1,245 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 1
-
-
-
-
-
-
-
- your@email.here
-
-
-
-
- ]]>
-
-
-
- throw
-
-
- ashx,aspx,ascx,config,cshtml,vbhtml,asmx,air,axd,swf,xml,xhtml,html,htm,php,htaccess
-
-
- assets/img/login.jpg
-
-
-
-
-
- false
-
- true
-
- false
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ 1
+
+
+
+
+
+
+
+ your@email.here
+
+
+
+
+
+
+
+ …
+
+
+
+
+
+
+ ]]>
+
+
+
+ throw
+
+
+ ashx,aspx,ascx,config,cshtml,vbhtml,asmx,air,axd,swf,xml,xhtml,html,htm,php,htaccess
+
+
+ assets/img/login.jpg
+
+
+
+
+
+ false
+
+ true
+
+ false
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Umbraco.Web.UI/config/umbracoSettings.config b/src/Umbraco.Web.UI/config/umbracoSettings.config
index a7f6e1e0f1..fa998a9856 100644
--- a/src/Umbraco.Web.UI/config/umbracoSettings.config
+++ b/src/Umbraco.Web.UI/config/umbracoSettings.config
@@ -1,112 +1,245 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 1
-
-
-
-
-
-
-
- your@email.here
-
-
-
-
- ]]>
-
-
- throw
-
-
- ashx,aspx,ascx,config,cshtml,vbhtml,asmx,air,axd,swf,xml,xhtml,html,htm,php,htaccess
-
-
- assets/img/login.jpg
-
-
-
-
-
- false
-
- true
-
- false
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ 1
+
+
+
+
+
+
+
+ your@email.here
+
+
+
+
+
+
+
+ …
+
+
+
+
+
+
+ ]]>
+
+
+
+ throw
+
+
+ ashx,aspx,ascx,config,cshtml,vbhtml,asmx,air,axd,swf,xml,xhtml,html,htm,php,htaccess
+
+
+ assets/img/login.jpg
+
+
+
+
+
+ false
+
+ true
+
+ false
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Umbraco.Web/HtmlHelperRenderExtensions.cs b/src/Umbraco.Web/HtmlHelperRenderExtensions.cs
index 0fd591e96b..ebe5e08f89 100644
--- a/src/Umbraco.Web/HtmlHelperRenderExtensions.cs
+++ b/src/Umbraco.Web/HtmlHelperRenderExtensions.cs
@@ -64,7 +64,8 @@ namespace Umbraco.Web
var htmlBadge =
String.Format(Current.Configs.Settings().Content.PreviewBadge,
IOHelper.ResolveUrl(SystemDirectories.Umbraco),
- Current.UmbracoContext.HttpContext.Server.UrlEncode(Current.UmbracoContext.HttpContext.Request.Path));
+ Current.UmbracoContext.HttpContext.Server.UrlEncode(Current.UmbracoContext.HttpContext.Request.Path),
+ Current.UmbracoContext.PublishedRequest.PublishedContent.Id);
return new MvcHtmlString(htmlBadge);
}
return new MvcHtmlString("");
diff --git a/src/Umbraco.Web/Mvc/UmbracoViewPageOfTModel.cs b/src/Umbraco.Web/Mvc/UmbracoViewPageOfTModel.cs
index 5ac4037fdb..0adb654d45 100644
--- a/src/Umbraco.Web/Mvc/UmbracoViewPageOfTModel.cs
+++ b/src/Umbraco.Web/Mvc/UmbracoViewPageOfTModel.cs
@@ -215,7 +215,8 @@ namespace Umbraco.Web.Mvc
markupToInject =
string.Format(Current.Configs.Settings().Content.PreviewBadge,
IOHelper.ResolveUrl(SystemDirectories.Umbraco),
- Server.UrlEncode(Current.UmbracoContext.HttpContext.Request.Url?.PathAndQuery));
+ Server.UrlEncode(Current.UmbracoContext.HttpContext.Request.Url?.PathAndQuery),
+ Current.UmbracoContext.PublishedRequest.PublishedContent.Id);
}
else
{