{"action":"created","issue":{"url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/2108","labels_url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/2108/labels{/name}","comments_url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/2108/comments","events_url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/2108/events","html_url":"https://github.com/bleroy/OrchardImportTest/issues/2108","id":66148561,"number":2108,"title":"Document.cshtml - formatting of page title incorrect on home page","user":{"login":"bleroy","id":1165609,"avatar_url":"https://avatars.githubusercontent.com/u/1165609?v=3","gravatar_id":"","url":"https://api.github.com/users/bleroy","html_url":"https://github.com/bleroy","followers_url":"https://api.github.com/users/bleroy/followers","following_url":"https://api.github.com/users/bleroy/following{/other_user}","gists_url":"https://api.github.com/users/bleroy/gists{/gist_id}","starred_url":"https://api.github.com/users/bleroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleroy/subscriptions","organizations_url":"https://api.github.com/users/bleroy/orgs","repos_url":"https://api.github.com/users/bleroy/repos","events_url":"https://api.github.com/users/bleroy/events{/privacy}","received_events_url":"https://api.github.com/users/bleroy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-03T13:40:59Z","updated_at":"2015-04-03T13:40:59Z","closed_at":null,"body":"In Document.cshtml, the line:  \n  \nvar title = (Request.Path.TrimEnd('/') != Request.ApplicationPath &&\nHasText(Model.Title)  \n\n    \n    \n                    ? Model.Title + WorkContext.CurrentSite.PageTitleSeparator\n                    : \"\") + WorkContext.CurrentSite.SiteName;\n    \n\nNeed a \".TrimEnd('/')\" added to the Request.ApplicationPath to make it work\ncorrectly on the home page, when the app is run at the root level of the site\n(not in an app directory)  \n  \nThus is it should be:  \nvar title = (Request.Path.TrimEnd('/') != Request.ApplicationPath.TrimEnd('/')\n&& HasText(Model.Title)  \n\n    \n    \n                    ? Model.Title + WorkContext.CurrentSite.PageTitleSeparator\n                    : \"\") + WorkContext.CurrentSite.SiteName;\n    \n\nI've tested this on [ http://trademarksymbol.net ](http://trademarksymbol.net)\nand other sites and confirmed this fixes the problem.  \n  \nThe sites had the site name duplicated on the root page previosuly, which is\nharmful to page seo.  \n\nWork Item Details\n--------------------\n**Original CodePlex Issue:**\t[Issue 18218](http://orchard.codeplex.com/workitem/18218)\n**Status:**\tClosed\n**Reason Closed:**\tUnassigned\n**Assigned to:**\tUnassigned\n**Reported on:**\tNov 11, 2011 at 9:52 PM\n**Reported by:**\tboomhauer\n**Updated on:**\tJan 25, 2012 at 11:19 PM\n**Updated by:**\tsebastienros\n**Closed on:**\tJan 25, 2012 at 11:19 PM\n**Closed by:**\tsebastienros\n**Status:**\tClosed\n**Reason Closed:**\tUnassigned\n**Assigned to:**\tUnassigned\n**Reported on:**\tNov 11, 2011 at 9:52 PM\n**Reported by:**\tboomhauer\n**Updated on:**\tJan 25, 2012 at 11:19 PM\n**Updated by:**\tsebastienros\n**Closed on:**\tJan 25, 2012 at 11:19 PM\n**Closed by:**\tsebastienros\n"},"comment":{"url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/comments/89290910","html_url":"https://github.com/bleroy/OrchardImportTest/issues/2108#issuecomment-89290910","issue_url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/2108","id":89290910,"user":{"login":"bleroy","id":1165609,"avatar_url":"https://avatars.githubusercontent.com/u/1165609?v=3","gravatar_id":"","url":"https://api.github.com/users/bleroy","html_url":"https://github.com/bleroy","followers_url":"https://api.github.com/users/bleroy/followers","following_url":"https://api.github.com/users/bleroy/following{/other_user}","gists_url":"https://api.github.com/users/bleroy/gists{/gist_id}","starred_url":"https://api.github.com/users/bleroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleroy/subscriptions","organizations_url":"https://api.github.com/users/bleroy/orgs","repos_url":"https://api.github.com/users/bleroy/repos","events_url":"https://api.github.com/users/bleroy/events{/privacy}","received_events_url":"https://api.github.com/users/bleroy/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T13:40:59Z","updated_at":"2015-04-03T13:40:59Z","body":"On *2011-12-02 05:41:01 UTC*, **@sebastienros** commented:\n\nCan't reproduce this one, the code you are mentioning doesn't exist anymore.\n\r\n** Closed by sebastienros 12/01/2011 2:41PM\n"}}