diff --git a/library/Icinga/Web/Url.php b/library/Icinga/Web/Url.php index eee57d82c..43de21f11 100644 --- a/library/Icinga/Web/Url.php +++ b/library/Icinga/Web/Url.php @@ -45,6 +45,13 @@ class Url */ protected $path = ''; + /** + * The basePath of this Url + * + * @var string + */ + protected $basePath; + /** * The baseUrl that will be appended to @see Url::$path * @@ -266,6 +273,29 @@ class Url } + /** + * Set the basePath for this url + * + * @param string $basePath New basePath of this url + * + * @return $this + */ + public function setBasePath($basePath) + { + $this->basePath = $basePath; + return $this; + } + + /** + * Return the basePath set for this url + * + * @return string + */ + public function getBasePath() + { + return $this->basePath; + } + /** * Overwrite the host *