mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-23 04:43:35 +08:00
Updating the Core Document shape template to better recognize if the app root is being displayed.
--HG-- branch : dev
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user