Skip to content

Commit

Permalink
Merge pull request #1 from Flowpack/mficzel-patch-1
Browse files Browse the repository at this point in the history
BUGFIX: Fix baseUri handling for Neos > 3.3
  • Loading branch information
kdambekalns authored Jun 18, 2018
2 parents 5fbd078 + f2fcb63 commit b57fd4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/HalResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public function getLinkValue($name, array $variables = [])
{
$uri = new Uri($this->getLink($name)->getHref($variables));

if ($uri->getHost() === null) {
if ($uri->getHost() === null || $uri->getHost() === '') {
$uri->setScheme($this->baseUri->getScheme());
$uri->setHost($this->baseUri->getHost());
$uri->setPath($this->baseUri->getPath() . $uri->getPath());
Expand Down

0 comments on commit b57fd4b

Please sign in to comment.