From 8d0254ce8a1ebceb80a2d14af414af1ca0a972be Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 27 Apr 2021 17:03:15 +0200 Subject: [PATCH] foto: translate tag album requests to .tag Hidden from overviews but accessible without dot. --- foto/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/foto/index.php b/foto/index.php index 8ba7db1..1ebb539 100644 --- a/foto/index.php +++ b/foto/index.php @@ -2,6 +2,9 @@ $rootdir = $Page->link; $nav = explode('/', $rootdir); +if (count($nav) > 1 and $nav[1] == 'tag') { + $rootdir = preg_replace('{/}', '/.', $rootdir, 1); +} $nav[0] = "Foto's"; # override of root 'foto' $title = array_pop($nav); $Page->title = ($nav ? implode(' ', $nav) . ': ' : '') . $title; -- 2.30.0