code: public function getLink(): string
      {
          if ($this->link === null) {
              return str_replace("?" . $_SERVER["QUERY_STRING"], "", $_SERVER["REQUEST_URI"]);
          } else {
              return $this->link;
          }
      }
docs: Gets the current link
  
  @return  string