From 5eff63c7f2f4f09d0237ea29e0d456eaf932c19a Mon Sep 17 00:00:00 2001 From: Dragos Protung Date: Wed, 17 Apr 2024 15:33:53 +0300 Subject: [PATCH] Add URL back from DTO when getting config object --- src/Dto/ActionDto.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Dto/ActionDto.php b/src/Dto/ActionDto.php index e4c026463b..d6ef6311f9 100644 --- a/src/Dto/ActionDto.php +++ b/src/Dto/ActionDto.php @@ -305,6 +305,10 @@ public function getAsConfigObject(): Action $action->linkToRoute($this->routeName, $this->routeParameters); } + if (null !== $this->url) { + $action->linkToUrl($this->url); + } + if (null !== $this->displayCallable) { $action->displayIf($this->displayCallable); }