src/Mouf/Html/Widgets/Menu/MenuItem.php
public function isActive() {
		if ($this->isActive) {
			return true;
		}
		// TODO: really compare URLs instead of performin a strpos.
		// We can do this using the parse_url function
		//var_dump(parse_url(ROOT_URL.$this->url));
		
		//$requestUrl = substr($_SERVER['REQUEST_URI'], 0, strpos($_SERVER['REQUEST_URI'], '?'));
		
		//error_log($_SERVER['REQUEST_URI'].' - '.$requestUrl.' - '.ROOT_URL.$this->url);
		if($this->activateBasedOnUrl && $this->url !== null) {
			$urlParts = parse_url($_SERVER['REQUEST_URI']);
			$menuUrlParts = parse_url($this->getLinkWithoutParams());
			
			if (isset($menuUrlParts['path'])) {
				$menuUrl = $menuUrlParts['path'];
			} else {
				$menuUrl = '/';
			}
			
			if (isset($urlParts['path'])) {
				$requestUrl = $urlParts['path'];
			} else {
				$requestUrl = '/';
			}
			
			if($requestUrl == $menuUrl) {
				return true;
			}
		}
		/*
		if ($this->activateBasedOnUrl && $this->url && strpos($_SERVER['REQUEST_URI'], ROOT_URL.$this->url) !== false) {
			return true;
		}
		*/
		return false;
	}
public function isActive() {
		if ($this->isActive) {
			return true;
		}
		// TODO: really compare URLs instead of performin a strpos.
		// We can do this using the parse_url function
		//var_dump(parse_url(ROOT_URL.$this->url));
		
		//$requestUrl = substr($_SERVER['REQUEST_URI'], 0, strpos($_SERVER['REQUEST_URI'], '?'));
		
		//error_log($_SERVER['REQUEST_URI'].' - '.$requestUrl.' - '.ROOT_URL.$this->url);
		if($this->activateBasedOnUrl && $this->url !== null) {
			$urlParts = parse_url($_SERVER['REQUEST_URI']);
			$menuUrlParts = parse_url($this->getLinkWithoutParams());
			
			if (isset($menuUrlParts['path'])) {
				$menuUrl = $menuUrlParts['path'];
			} else {
				$menuUrl = '/';
			}
			
			if (isset($urlParts['path'])) {
				$requestUrl = $urlParts['path'];
			} else {
				$requestUrl = '/';
			}
			
			if($requestUrl == $menuUrl) {
				return true;
			}
		}
		/*
		if ($this->activateBasedOnUrl && $this->url && strpos($_SERVER['REQUEST_URI'], ROOT_URL.$this->url) !== false) {
			return true;
		}
		*/
		return false;
	}
Returns true if the menu is in active state (if we are on the page for this menu).
@return bool