From c7fc645fde320cd518d06ff6b88668c7ccb0e943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Tue, 30 Apr 2019 19:16:58 +0200 Subject: [PATCH] fallback to addressing by tag name in public-facing side --- www/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/index.php b/www/index.php index fafb644..d1eb95a 100644 --- a/www/index.php +++ b/www/index.php @@ -22,6 +22,9 @@ if (isset($_GET["item"])) { $docs = $db->listDocs(-1); } else { $tag = $db->fetchTag($_GET["tag"]); + if (!$tag) { + $tag = $db->findTag($_GET["tag"]); + } $docs = $db->listDocs($tag["ID"]); $tag["Description"] = $pd->text($tag["Description"]); $doc_list_template->tag = $tag;