protected function appendToEncodedUrl($stringToAppend, $addSlash = TRUE)
{
if ($stringToAppend !== '') {
$this->encodedUrl = ($this->encodedUrl ? rtrim($this->encodedUrl, '/') . '/' : '') . $stringToAppend;
if ($addSlash) {
$this->encodedUrl .= '/';
}
}
}