{"action":"closed","issue":{"url":"https://api.github.com/repos/silverstripe/silverstripe-subsites/issues/233","repository_url":"https://api.github.com/repos/silverstripe/silverstripe-subsites","labels_url":"https://api.github.com/repos/silverstripe/silverstripe-subsites/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/silverstripe/silverstripe-subsites/issues/233/comments","events_url":"https://api.github.com/repos/silverstripe/silverstripe-subsites/issues/233/events","html_url":"https://github.com/silverstripe/silverstripe-subsites/issues/233","id":130878325,"number":233,"title":"SubsiteDomain::getSubstitutedDomain does not returns port","user":{"login":"ctx2002","id":1106874,"avatar_url":"https://avatars.githubusercontent.com/u/1106874?v=3","gravatar_id":"","url":"https://api.github.com/users/ctx2002","html_url":"https://github.com/ctx2002","followers_url":"https://api.github.com/users/ctx2002/followers","following_url":"https://api.github.com/users/ctx2002/following{/other_user}","gists_url":"https://api.github.com/users/ctx2002/gists{/gist_id}","starred_url":"https://api.github.com/users/ctx2002/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctx2002/subscriptions","organizations_url":"https://api.github.com/users/ctx2002/orgs","repos_url":"https://api.github.com/users/ctx2002/repos","events_url":"https://api.github.com/users/ctx2002/events{/privacy}","received_events_url":"https://api.github.com/users/ctx2002/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-03T01:19:52Z","updated_at":"2016-02-03T04:53:07Z","closed_at":"2016-02-03T04:53:07Z","body":"SubsiteDomain::getSubstitutedDomain does not returns url \"port\" number:\r\n\r\nso we have to added following code:\r\n\r\n1> $port = parse_url($currentHost, PHP_URL_PORT);\r\n2> if ($port !==FALSE && $port != 80) {\r\n            $domain .= \":\".$port;\r\n        }\r\n\r\nplease have a look.\r\n\r\nI can make a pull request , if you want."}}