From ba4d2a9c48399fdcf0fb5e550dbd721f4f98682e Mon Sep 17 00:00:00 2001 From: slawkens Date: Sun, 14 May 2023 08:38:20 +0200 Subject: [PATCH] Dirty workaround for fb links --- index.php | 6 ++++++ templates/kathrine/images/pages/test.php | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 templates/kathrine/images/pages/test.php diff --git a/index.php b/index.php index 7cb6ba67..6517e3fb 100644 --- a/index.php +++ b/index.php @@ -154,6 +154,12 @@ else { } } +// handle ?fbclid=x, etc. (show news page) +if (!$found && count($_GET) > 0 && !isset($_REQUEST['subtopic']) && !isset($_REQUEST['p'])) { + $_REQUEST['p'] = $_REQUEST['subtopic'] = 'news'; + $found = true; +} + // define page visited, so it can be used within events system $page = isset($_REQUEST['subtopic']) ? $_REQUEST['subtopic'] : (isset($_REQUEST['p']) ? $_REQUEST['p'] : ''); if(empty($page) || !preg_match('/^[A-z0-9\_\-]+$/', $page)) { diff --git a/templates/kathrine/images/pages/test.php b/templates/kathrine/images/pages/test.php new file mode 100644 index 00000000..acc31c09 --- /dev/null +++ b/templates/kathrine/images/pages/test.php @@ -0,0 +1,3 @@ +