From 10ddf8bf7f3da7c3d3fa3da486e89e0df4191f87 Mon Sep 17 00:00:00 2001 From: NOrtmann1 <145041949+NOrtmann1@users.noreply.github.com> Date: Wed, 27 May 2026 17:48:36 +0200 Subject: [PATCH] Update createArticle-controller.php --- php/controller/createArticle-controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/controller/createArticle-controller.php b/php/controller/createArticle-controller.php index 0ffd4bb..94db813 100644 --- a/php/controller/createArticle-controller.php +++ b/php/controller/createArticle-controller.php @@ -14,7 +14,7 @@ try { if ($_SERVER["REQUEST_METHOD"] === "POST") { if(!isset($_POST["title"]) ||!isset($_POST["content"]) || !isset($_POST["category"])){ $_SESSION["message"] = "missing_parameters"; - header("location:" . $abs_path . "/index.php?pfad=createArticle"); + header("location: ../../index.php?pfad=createArticle"); } else { $title = $_POST["title"]; @@ -26,7 +26,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") { //$articleManager->addArticle($title, $content, $category, $author, $tags); // Weiterleitung zur Homepage - header("location:" . $abs_path . "/index.php"); + header("location:" . $abs_path . "../../index.php"); exit(); }