diff --git a/src/Screen/Actions/Button.php b/src/Screen/Actions/Button.php index 26db6ee40..5b7e028ea 100644 --- a/src/Screen/Actions/Button.php +++ b/src/Screen/Actions/Button.php @@ -78,7 +78,7 @@ public function __construct() $query = http_build_query($this->get('parameters')); - $action = rtrim("{$url}/{$this->get('method')}?{$query}", '/?'); + $action = rtrim((str_ends_with($url, '/') ? $url : "{$url}/") . "{$this->get('method')}?{$query}", '/?'); $this->set('action', $action); })->addBeforeRender(function () { $action = $this->get('action');