Action: Return the new url if it has been resolved

This was already part of the 2.0 release, but was working however. Got
revealed by a restructuring commit a few weeks ago.

fixes #10702
This commit is contained in:
Johannes Meyer 2015-11-23 10:34:46 +01:00
parent 6725d6fa9d
commit 7c6471da86
1 changed files with 3 additions and 2 deletions

View File

@ -89,10 +89,11 @@ class Action extends NavigationItem
if (! $this->resolved && $url !== null) {
$this->setUrl(Macro::resolveMacros($url->getAbsoluteUrl(), $this->getObject()));
$this->resolved = true;
}
return parent::getUrl();
} else {
return $url;
}
}
/**
* {@inheritdoc}