{"action":"created","issue":{"url":"https://api.github.com/repos/dmitryd/typo3-realurl/issues/350","repository_url":"https://api.github.com/repos/dmitryd/typo3-realurl","labels_url":"https://api.github.com/repos/dmitryd/typo3-realurl/issues/350/labels{/name}","comments_url":"https://api.github.com/repos/dmitryd/typo3-realurl/issues/350/comments","events_url":"https://api.github.com/repos/dmitryd/typo3-realurl/issues/350/events","html_url":"https://github.com/dmitryd/typo3-realurl/issues/350","id":193656454,"number":350,"title":"/1 appended to URL internally, not 301-redirected","user":{"login":"thomaszbz","id":11200727,"avatar_url":"https://avatars.githubusercontent.com/u/11200727?v=3","gravatar_id":"","url":"https://api.github.com/users/thomaszbz","html_url":"https://github.com/thomaszbz","followers_url":"https://api.github.com/users/thomaszbz/followers","following_url":"https://api.github.com/users/thomaszbz/following{/other_user}","gists_url":"https://api.github.com/users/thomaszbz/gists{/gist_id}","starred_url":"https://api.github.com/users/thomaszbz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomaszbz/subscriptions","organizations_url":"https://api.github.com/users/thomaszbz/orgs","repos_url":"https://api.github.com/users/thomaszbz/repos","events_url":"https://api.github.com/users/thomaszbz/events{/privacy}","received_events_url":"https://api.github.com/users/thomaszbz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-06T01:11:38Z","updated_at":"2016-12-07T08:17:55Z","closed_at":"2016-12-07T08:17:55Z","body":"This issue might rather be a question than a bug report. I just don't know yet.\r\n\r\nThe issue is that for an URL `https://www.example.com` with TYPO3 CMS 7.6.11 and RealUrl 2.1.5 I get URLs of the form\r\n\r\n    https://www.example.com/1\r\n    1\r\n\r\nwhich are then passed via TYPO3's hook in `ContentObjectRenderer` to metaseo and then used as canonical URLs and in sitemaps for search engines.\r\n\r\nFor details how I tracked this down please have a look at https://github.com/mblaschke/TYPO3-metaseo/issues/224\r\n\r\nI am aware that RealUrl silently appends numbers in case of [duplicates](https://github.com/dmitryd/typo3-realurl/wiki/Notes-for-Integrators#my-record-titles-are-not-unique-how-do-i-use-them-in-aliases). I assume that this is different from old issues where URLs had page UIDs appended like `https://www.example.com/44/`. Note that my example hat page `uid=2` and not `1`. So it could be because something duplicates.\r\n\r\nHowever, I could not figure out what was the duplicate in my case. Page title, alias and (after dropping some data) even entries in RealUrl's tables were unique or deleted. The /1 entry got created over and over in RealUrl's tables. Workaround: To stop RealUrl from creating `/1` entries, I had to insert an entry `/`.\r\n\r\nBasically, there's two questions:\r\n\r\n- When exactly does RealUrl append numbers to URLs? Could you please document how duplicates are determined by RealUrl? Which requirements are needed to ensure uniqueness?\r\n- If such a number is appended internally, should the http-request not be 301-redirected to the internal new URL? That would avoid duplicate content, and be consistent with sitemaps and canonical URLs.\r\n"},"comment":{"url":"https://api.github.com/repos/dmitryd/typo3-realurl/issues/comments/265384316","html_url":"https://github.com/dmitryd/typo3-realurl/issues/350#issuecomment-265384316","issue_url":"https://api.github.com/repos/dmitryd/typo3-realurl/issues/350","id":265384316,"user":{"login":"dmitryd","id":306133,"avatar_url":"https://avatars.githubusercontent.com/u/306133?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitryd","html_url":"https://github.com/dmitryd","followers_url":"https://api.github.com/users/dmitryd/followers","following_url":"https://api.github.com/users/dmitryd/following{/other_user}","gists_url":"https://api.github.com/users/dmitryd/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitryd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitryd/subscriptions","organizations_url":"https://api.github.com/users/dmitryd/orgs","repos_url":"https://api.github.com/users/dmitryd/repos","events_url":"https://api.github.com/users/dmitryd/events{/privacy}","received_events_url":"https://api.github.com/users/dmitryd/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T08:17:55Z","updated_at":"2016-12-07T08:17:55Z","body":"> I am aware that RealUrl silently appends numbers in case of duplicates\r\n\r\nNot, it does not do so for page titles. It does so only for aliases.\r\n\r\n> I assume that this is different from old issues where URLs had page UIDs appended like https://www.example.com/44/\r\n\r\nThis was the case for realurl 1.x and never for 2.x.\r\n\r\n> Basically, there's two questions:\r\n\r\nThis place is for confirmed bugs only. There are no answers to questions here or any kind of support beyond fixing confirmed bugs. If you need other help, see [Getting help](https://github.com/dmitryd/typo3-realurl/wiki/Getting-help).\r\n\r\nBefore I look into this, you have to make sure this is a realurl bug. So far I doubt so. Therefore I close this issue. If you have more information and can confirm that it is really a realurl bug, please, post more information and I will re-open the report."}}
{"actor":{"display_login":"dmitryd"}}