{"action":"opened","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/10736","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/10736/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/10736/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/10736/events","html_url":"https://github.com/joomla/joomla-cms/issues/10736","id":158565025,"number":10736,"title":"missing slashes in URL with activated SEF if link target is not in menu","user":{"login":"lyrischesich","id":8648533,"avatar_url":"https://avatars.githubusercontent.com/u/8648533?v=3","gravatar_id":"","url":"https://api.github.com/users/lyrischesich","html_url":"https://github.com/lyrischesich","followers_url":"https://api.github.com/users/lyrischesich/followers","following_url":"https://api.github.com/users/lyrischesich/following{/other_user}","gists_url":"https://api.github.com/users/lyrischesich/gists{/gist_id}","starred_url":"https://api.github.com/users/lyrischesich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyrischesich/subscriptions","organizations_url":"https://api.github.com/users/lyrischesich/orgs","repos_url":"https://api.github.com/users/lyrischesich/repos","events_url":"https://api.github.com/users/lyrischesich/events{/privacy}","received_events_url":"https://api.github.com/users/lyrischesich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-05T17:32:32Z","updated_at":"2016-06-05T17:32:32Z","closed_at":null,"body":"#### Steps to reproduce the issue\r\nTurn on SEF in Backend and create (with JCE-Editor) a link to an article that is not linked in any menu. In my case I got:\r\n\r\n```\r\nindex.php?option=com_content&amp;view=article&amp;id=677:gespraechsforum-handy-in-der-schule&amp;catid=261:medienbildung&amp;Itemid=472\r\n```\r\n(Where the appended Itemid 472 is the one of the main menu which is okay for me.)\r\n\r\n#### Expected result\r\nI am expecting a SEF url that points to the selected article:\r\n```\r\nhttp://www.humboldtschule-berlin.de/261-humboldt-gymnasium/profil/medienbildung/677-gespraechsforum-handy-in-der-schule\r\n```\r\n\r\n\r\n#### Actual result\r\nI got the right url, but all slashes after the hostname-part are missing: \r\n```\r\nhttp://www.humboldtschule-berlin.de/261-humboldt-gymnasiumprofilmedienbildung677-gespraechsforum-handy-in-der-schule\r\n```\r\n#### System information (as much as possible)\r\nJoomla! 3.5.1 Stable [ Unicorn ] 05-April-2016 22:45 GMT\r\nJoomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT \r\nPHP  5.4.45-0+deb7u3 \r\nApache\r\n\r\n\r\n#### Additional comments\r\nAdding the following 3 lines before the `return`-statement in the `build`-function of the `ContentRouter`-class (in the file `./components/com_content/router.php`) fixed the problem for me, but I am pretty shure that this is not the right solution:\r\n```php\r\nfor($i=0;$i<count($segments)-1;$i++) {\r\n   if(strlen($segments[$i])>0) $segments[$i] = $segments[$i].\"/\";\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"lyrischesich"}}