diff --git a/src/Orchard.Web/Core/Shapes/Views/Document.cshtml b/src/Orchard.Web/Core/Shapes/Views/Document.cshtml index f181d12b7..6ebe88be2 100644 --- a/src/Orchard.Web/Core/Shapes/Views/Document.cshtml +++ b/src/Orchard.Web/Core/Shapes/Views/Document.cshtml @@ -6,7 +6,7 @@ Script.Include("html5.js").AtLocation(ResourceLocation.Head); //a bit opinionated - only the site name on the homepage - var title = (Request.Path != Request.ApplicationPath && HasText(Model.Title) + var title = (Request.Path.TrimEnd('/') != Request.ApplicationPath && HasText(Model.Title) ? Model.Title + WorkContext.CurrentSite.PageTitleSeparator : "") + WorkContext.CurrentSite.SiteName;