/** * Check if redirect to clean URL is needed * * @return boolean */ protected function isRedirectToCleanURLNeeded() { return parent::isRedirectToCleanURLNeeded() && $this->getCategory()->getParent(); }