code: public static function getCurrentPage()
      {
          $protocol = self::getProtocol();
          $host = self::getDomain();
          $port = ':' . self::getPort();
          $port = (($port == ':80') || ($port == ':443')) ? '' : $port;
          $uri = self::getUri();
  
          return $protocol . '://' . $host . $port . $uri;
      }
docs: Get URL from the current page.
  
  @return string → URL