Skip to content

Commit

Permalink
[Bug]: Fix Assets not displaying due empty Host Url (#41)
Browse files Browse the repository at this point in the history
* host url is probably always set but could be empty

* Update src/Processor/Gotenberg.php

Co-authored-by: Sebastian Blank <[email protected]>

---------

Co-authored-by: Sebastian Blank <[email protected]>
  • Loading branch information
kingjia90 and blankse authored Jul 20, 2023
1 parent 31f9929 commit 9974f8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Processor/Gotenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected function buildPdf(PrintAbstract $document, object $config): string
$html = $document->renderDocument($params);

$params['hostUrl'] = 'http://nginx:80';
if (isset($web2printConfig['gotenbergHostUrl'])) {
if (!empty($web2printConfig['gotenbergHostUrl'])) {
$params['hostUrl'] = $web2printConfig['gotenbergHostUrl'];
}

Expand Down

0 comments on commit 9974f8f

Please sign in to comment.