From 36716c2d3bcb6bd22d3ab9ec8850af5bf0b202f1 Mon Sep 17 00:00:00 2001 From: Christian Tietze Date: Fri, 23 Aug 2019 18:02:25 +0200 Subject: [PATCH] fallback to reading a page for "/tags" --- bl-kernel/url.class.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bl-kernel/url.class.php b/bl-kernel/url.class.php index b3e7a86f..f7a65628 100644 --- a/bl-kernel/url.class.php +++ b/bl-kernel/url.class.php @@ -56,12 +56,6 @@ class Url $subString = mb_substr($this->uri, 0, $filterFullLenght, CHARSET); - // Check coincidence without the last slash at the end, this case is notfound - if ($subString==$filterURIwoSlash) { - $this->setNotFound(); - return false; - } - // Check coincidence with complete filterURI if ($subString==$filterFull) { $this->slug = mb_substr($this->uri, $filterFullLenght); @@ -77,6 +71,9 @@ class Url $this->setWhereAmI('home'); } elseif (!empty($this->slug) && ($filterURI=='/')) { $this->setWhereAmI('page'); + } elseif (empty($this->slug) && ($filterName=='tag')) { + $this->slug = 'tag'; + $this->setWhereAmI('page'); } elseif ($filterName=='admin') { $this->slug = ltrim($this->slug, '/'); }