protected function _removeURIBase($uri)
{
static $root = null, $rootlen = 0;
if (is_null($root)) {
$root = rtrim(\JUri::base(false), '/');
$rootlen = strlen($root);
}
if (substr($uri, 0, $rootlen) == $root) {
$uri = substr($uri, $rootlen);
}
return ltrim($uri, '/');
}