Navigation\Action: Don't try to resolve non existing urls

fixes #4211
This commit is contained in:
Johannes Meyer 2020-08-10 10:29:54 +02:00
parent b01bd74d5c
commit c1bb17709a
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ class Action extends NavigationItem
public function getUrl()
{
$url = parent::getUrl();
if (! $this->resolved && $url === null) {
if (! $this->resolved && $url === null && $this->rawUrl !== null) {
$this->setUrl(Url::fromPath(Macro::resolveMacros($this->rawUrl, $this->getObject())));
$this->resolved = true;
return parent::getUrl();