{"action":"opened","issue":{"url":"https://api.github.com/repos/contao/news-bundle/issues/5","repository_url":"https://api.github.com/repos/contao/news-bundle","labels_url":"https://api.github.com/repos/contao/news-bundle/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/contao/news-bundle/issues/5/comments","events_url":"https://api.github.com/repos/contao/news-bundle/issues/5/events","html_url":"https://github.com/contao/news-bundle/issues/5","id":158866546,"number":5,"title":"feature: exclude reader page from sitemap and forward to or display latest news","user":{"login":"fritzmg","id":4970961,"avatar_url":"https://avatars.githubusercontent.com/u/4970961?v=3","gravatar_id":"","url":"https://api.github.com/users/fritzmg","html_url":"https://github.com/fritzmg","followers_url":"https://api.github.com/users/fritzmg/followers","following_url":"https://api.github.com/users/fritzmg/following{/other_user}","gists_url":"https://api.github.com/users/fritzmg/gists{/gist_id}","starred_url":"https://api.github.com/users/fritzmg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fritzmg/subscriptions","organizations_url":"https://api.github.com/users/fritzmg/orgs","repos_url":"https://api.github.com/users/fritzmg/repos","events_url":"https://api.github.com/users/fritzmg/events{/privacy}","received_events_url":"https://api.github.com/users/fritzmg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-07T08:27:34Z","updated_at":"2016-06-07T08:27:34Z","closed_at":null,"body":"By default, the reader page also gets included into the sitemap, which means search engines might index an otherwise empty page (since there is no output from the reader module when there is no parameter). People often wish to exclude it from the sitemap for that reason, or at least make it so that the reader page either forwads to or displays the latest news entry (though the latter would be duplicate content and inserting a canonical tag in such a case wouldn't make much sense imho).\r\n\r\nSo this feature request would generally be about handling empty reader pages. The reader module could provide two additional options:\r\n\r\n* Redirect to newest entry\r\n* Hide page from sitemap\r\n\r\nWhen the first option is active, the reader module would simply search for the first news archive, that has the redirect page set to itself and generate an URL to the latest news entry from there and execute a redirect.\r\n\r\nFurthermore, the `getSearchablePages` Hook would look for any reader modules on pages when `$blnIsSitemap` is `true` and remove the page from `$arrPages` whenever the second option of the module is set."}}
{"actor":{"display_login":"fritzmg"}}