setKey(). $category = new RouterViewConfiguration('category'); $category->setKey('id')->setNestable(); $this->registerView($category); // If your view also has a parent view, like an article view which can // be reached via a category view, you then have to define the parent view // of $view. $article = new RouterViewConfiguration('article'); $article->setKey('id')->setParent($category, 'catid'); $this->registerView($article); parent::__construct($app, $menu); // implements the Itemid lookup for your router $this->attachRule(new MenuRules($this)); // implements the current behavior of the Joomla core components $this->attachRule(new StandardRules($this)); // implements the behavior when no Itemid is present after the Itemid lookup $this->attachRule(new NomenuRules($this)); }