Fix Block8/PHPCI#484 : Add support for GitLab commit/branch links when ref URL includes port number