{"action":"created","issue":{"url":"https://api.github.com/repos/pavlepredic/Yii-sitemap-module/issues/7","labels_url":"https://api.github.com/repos/pavlepredic/Yii-sitemap-module/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/pavlepredic/Yii-sitemap-module/issues/7/comments","events_url":"https://api.github.com/repos/pavlepredic/Yii-sitemap-module/issues/7/events","html_url":"https://github.com/pavlepredic/Yii-sitemap-module/issues/7","id":46731372,"number":7,"title":"double slash in generated model urls","user":{"login":"maccaluso","id":1784686,"avatar_url":"https://avatars.githubusercontent.com/u/1784686?v=3","gravatar_id":"","url":"https://api.github.com/users/maccaluso","html_url":"https://github.com/maccaluso","followers_url":"https://api.github.com/users/maccaluso/followers","following_url":"https://api.github.com/users/maccaluso/following{/other_user}","gists_url":"https://api.github.com/users/maccaluso/gists{/gist_id}","starred_url":"https://api.github.com/users/maccaluso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maccaluso/subscriptions","organizations_url":"https://api.github.com/users/maccaluso/orgs","repos_url":"https://api.github.com/users/maccaluso/repos","events_url":"https://api.github.com/users/maccaluso/events{/privacy}","received_events_url":"https://api.github.com/users/maccaluso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-10-24T12:10:36Z","updated_at":"2015-02-20T22:08:43Z","closed_at":null,"body":"Hi...\r\nI have this line in url manager:\r\n'<slug>' => 'site/product',\r\nIt basically serves products right after the root.\r\n\r\nIn Yii-sitemap config I have this:\r\n\r\narray(\r\n         'route' => '/',\r\n\t 'params' => array(\r\n\t     'model' => array(\r\n\t\t 'class' => 'Products',\r\n\t         'criteria' => array('condition' => 'publish_status = \"PUBLIC\"'),\r\n\t         'map' => array(\r\n\t\t\t        '' => 'slug',\r\n\t\t ),\r\n\t     ),\r\n         ),\r\n),\r\n\r\nIt works but generates urls like this one:\r\n\r\nwww.domain.tld/shop//la-quagliera-extra-virgin-olive-oil\r\n\r\nHot can I get rid of double slashes?\r\nTnx"},"comment":{"url":"https://api.github.com/repos/pavlepredic/Yii-sitemap-module/issues/comments/75328444","html_url":"https://github.com/pavlepredic/Yii-sitemap-module/issues/7#issuecomment-75328444","issue_url":"https://api.github.com/repos/pavlepredic/Yii-sitemap-module/issues/7","id":75328444,"user":{"login":"Skatox","id":177008,"avatar_url":"https://avatars.githubusercontent.com/u/177008?v=3","gravatar_id":"","url":"https://api.github.com/users/Skatox","html_url":"https://github.com/Skatox","followers_url":"https://api.github.com/users/Skatox/followers","following_url":"https://api.github.com/users/Skatox/following{/other_user}","gists_url":"https://api.github.com/users/Skatox/gists{/gist_id}","starred_url":"https://api.github.com/users/Skatox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skatox/subscriptions","organizations_url":"https://api.github.com/users/Skatox/orgs","repos_url":"https://api.github.com/users/Skatox/repos","events_url":"https://api.github.com/users/Skatox/events{/privacy}","received_events_url":"https://api.github.com/users/Skatox/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T22:08:43Z","updated_at":"2015-02-20T22:08:43Z","body":"I solved this by editing SitemapModule.php adding this to line 348:\r\n\r\n$url = str_replace('//', '/', $url);"}}