From 9c50caa6d7004519f06bb780334e0d298e341401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20Nicou=C3=A9?= Date: Thu, 24 Nov 2022 17:16:07 +0100 Subject: [PATCH] Edit url based exhibition titles --- site/controllers/home.php | 1 + 1 file changed, 1 insertion(+) diff --git a/site/controllers/home.php b/site/controllers/home.php index d590ae9..929629f 100644 --- a/site/controllers/home.php +++ b/site/controllers/home.php @@ -8,6 +8,7 @@ return function ($page) { // Add url based title to each exhibition foreach ($exhibitions as &$exhibition) { $exhibition['title'] = str_replace(['http://', 'https://', 'www.'], '', $exhibition['url']); + $exhibition['title'] = rtrim($exhibition['title'], '/'); } // Get contact fields content