fix(PreviewCompose): adds port to preview urls
This commit is contained in:
parent
dc807f31a0
commit
8ee4ddf489
1 changed files with 2 additions and 0 deletions
|
|
@ -72,10 +72,12 @@ public function generate()
|
|||
$template = $this->preview->application->preview_url_template;
|
||||
$host = $url->getHost();
|
||||
$schema = $url->getScheme();
|
||||
$port = ":" . $url->getPort();
|
||||
$random = new Cuid2;
|
||||
$preview_fqdn = str_replace('{{random}}', $random, $template);
|
||||
$preview_fqdn = str_replace('{{domain}}', $host, $preview_fqdn);
|
||||
$preview_fqdn = str_replace('{{pr_id}}', $this->preview->pull_request_id, $preview_fqdn);
|
||||
$preview_fqdn = str_replace('{{port}}', $port, $preview_fqdn);
|
||||
$preview_fqdn = "$schema://$preview_fqdn";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue