From cc7004f032555bb65423986d02d09f3f2e8e680c Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Sun, 5 Mar 2023 17:55:02 +0100 Subject: [PATCH] UrlRequest: add current_full_url property --- src/UrlRequest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/UrlRequest.php b/src/UrlRequest.php index f661a8d..c401078 100644 --- a/src/UrlRequest.php +++ b/src/UrlRequest.php @@ -7,6 +7,7 @@ namespace EesyPHP; * * @author Benjamin Renard * @property-read string|null $current_url; + * @property-read string|null $current_full_url; * @property-read array|null $handler; * @property-read bool $authenticated; * @property-read bool $api_mode; @@ -75,6 +76,8 @@ class UrlRequest { public function __get($key) { if ($key == 'current_url') return $this -> current_url; + if ($key == 'current_full_url') + return Url::add_url_parameters($this -> current_url, $_GET, false); if ($key == 'handler') return $this -> handler; if ($key == 'authenticated')