add category index page fallback

This commit is contained in:
Christian Tietze 2019-08-23 18:09:17 +02:00
parent 08e4421c65
commit 2cf7339796
1 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,9 @@ class Url
} elseif (empty($this->slug) && ($filterName==TAG_URI_FILTER)) { } elseif (empty($this->slug) && ($filterName==TAG_URI_FILTER)) {
$this->slug = TAG_URI_FILTER; $this->slug = TAG_URI_FILTER;
$this->setWhereAmI('page'); $this->setWhereAmI('page');
} elseif (empty($this->slug) && ($filterName==CATEGORY_URI_FILTER)) {
$this->slug = CATEGORY_URI_FILTER;
$this->setWhereAmI('page');
} elseif ($filterName=='admin') { } elseif ($filterName=='admin') {
$this->slug = ltrim($this->slug, '/'); $this->slug = ltrim($this->slug, '/');
} }