From d322136d9fde79122e78f8995c377ba692374cea Mon Sep 17 00:00:00 2001 From: Denis Walker <dez@sucs.org> Date: Tue, 21 Oct 2008 22:14:37 +0000 Subject: [PATCH] Resolves #39 by forcing a trailing slash in the News URI. --- components/news.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/news.php b/components/news.php index 6f7c8f4..9f303a0 100644 --- a/components/news.php +++ b/components/news.php @@ -1,4 +1,6 @@ <?php +// Ensure we have a trailing slash so that relative links within the page work +if ($_SERVER['PATH_INFO']=="/News") header("Location: ".$baseurl."/News/"); // A user must be in the staff group in order to edit content in this component $permission = "staff"; -- GitLab