diff --git a/classes/contactrouter.php b/classes/contactrouter.php
index 2d8113d..ea294f4 100644
--- a/classes/contactrouter.php
+++ b/classes/contactrouter.php
@@ -59,6 +59,12 @@ public function getCategorySegment($id, $query)
if ($category)
{
$path = array_reverse($category->getPath(), true);
+
+ if (!count($path))
+ {
+ $path[$category->id] = $category->slug;
+ }
+
$path[0] = '1:root';
if ($this->noIDs)
diff --git a/classes/contentrouter.php b/classes/contentrouter.php
index 707c1b7..55cdd78 100644
--- a/classes/contentrouter.php
+++ b/classes/contentrouter.php
@@ -61,6 +61,12 @@ public function getCategorySegment($id, $query)
if ($category)
{
$path = array_reverse($category->getPath(), true);
+
+ if (!count($path))
+ {
+ $path[$category->id] = $category->slug;
+ }
+
$path[0] = '1:root';
if ($this->noIDs)
diff --git a/classes/newsfeedrouter.php b/classes/newsfeedrouter.php
index 17c80fb..7a75b46 100644
--- a/classes/newsfeedrouter.php
+++ b/classes/newsfeedrouter.php
@@ -57,6 +57,12 @@ public function getCategorySegment($id, $query)
if ($category)
{
$path = array_reverse($category->getPath(), true);
+
+ if (!count($path))
+ {
+ $path[$category->id] = $category->slug;
+ }
+
$path[0] = '1:root';
if ($this->noIDs)
diff --git a/jlrouter.xml b/jlrouter.xml
index b9cfc3e..56bcc24 100644
--- a/jlrouter.xml
+++ b/jlrouter.xml
@@ -7,13 +7,16 @@
GNU General Public License version 2 or later; see LICENSE.txt
info@joomlager.de
www.joomlager.de
- 1.0.0
+ 1.1.0
PLG_SYSTEM_JLROUTER_XML_DESCRIPTION
jlrouter.php
classes
language
+
+ https://www.joomlager.de/updates/updates.xml
+