/**
* Decide if the item should be active.
*
* @return null
*/
public function checkActiveStatus()
{
$path = ltrim(parse_url($this->url(), PHP_URL_PATH), '/');
$requestPath = Request::path();
if ($this->builder->config['rest_base']) {
$base = is_array($this->builder->config['rest_base']) ? implode('|', $this->builder->config['rest_base']) : $this->builder->conf['rest_base'];
list($path, $requestPath) = preg_replace('@^(' . $base . ')/@', '', [$path, $requestPath], 1);
}
if ($this->url() == Request::url() || $this->url() == \URL::secure(Request::path())) {
$this->activate();
}
}