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:
parent
6725d6fa9d
commit
7c6471da86
|
@ -89,9 +89,10 @@ class Action extends NavigationItem
|
||||||
if (! $this->resolved && $url !== null) {
|
if (! $this->resolved && $url !== null) {
|
||||||
$this->setUrl(Macro::resolveMacros($url->getAbsoluteUrl(), $this->getObject()));
|
$this->setUrl(Macro::resolveMacros($url->getAbsoluteUrl(), $this->getObject()));
|
||||||
$this->resolved = true;
|
$this->resolved = true;
|
||||||
|
return parent::getUrl();
|
||||||
|
} else {
|
||||||
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $url;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue