/** * Return the relative url with query parameters as a string * * @return string */ public function getRelativeUrl($separator = '&') { if ($this->params->isEmpty()) { return $this->path . $this->anchor; } else { return $this->path . '?' . $this->params->toString($separator) . $this->anchor; } }
public function getQueryString($separator = null) { return $this->params->toString($separator); }