From 6861f5cf03578db1b2227d29e040a4e79326af1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Fri, 2 Feb 2024 16:19:29 +0100 Subject: [PATCH] exit on redirect --- lib/router.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/router.php b/lib/router.php index ce0826f..bb19dec 100644 --- a/lib/router.php +++ b/lib/router.php @@ -60,7 +60,12 @@ function initRouter(): bool $routerRequest["type"] = "page"; } } - echo $needsRedirect; + if ($needsRedirect){ + echo "yes"; + } + else{ + echo "no"; + } return !$needsRedirect; }