From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1681570096; bh=E6bnnqnGZOBtHo3yTa/izufrrfKT2vNMW+cyyMNIa6w=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ZGG/yC0nVyppi7aMX5YDGG6XTVOkTX5F1wi1BRK6eDb+K2NHEFxYLSHXne7YQG3Dj yD1ukpBZplw/pdGZb/v5Gbse49y17rSMDE0HmFYlmIW/W1k3aookjc3vjq3cpPbyWv rBFLIzDFZWJ6lJ1p9jAeljTKVDMqkFoJKfwMrup15QK3LfBYj6DmgqrxMTzByNWMDW Hrjd4gJNZBvMP0Qp3AV2CTKQtyGOTjDxSxRGjZe+sU6QQDbcuM7QFOsFmXwu3Ex0sG 8GNazStDlSylb0CAH4hyPlGT1fJYPjXZA/xNIjm9a7C8L3tKEwTqsr/ZnzWJpHd2SW kI+yA/EY7dQwg== Received: from localhost.localdomain (unknown [182.1.21.53]) by gnuweeb.org (Postfix) with ESMTPSA id 5931A245509; Sat, 15 Apr 2023 21:48:15 +0700 (WIB) From: Memet Zx To: GNU/Weeb Mailing List Cc: Ammar Faizi , Memet Zx Subject: [PATCH: Website v2 1/2] head.php: Fix issue with css/js head section Date: Sat, 15 Apr 2023 21:48:04 +0700 Message-Id: <20230415144805.282728-2-zxce3@gnuweeb.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230415144805.282728-1-zxce3@gnuweeb.org> References: <20230415144805.282728-1-zxce3@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: When visiting a web page that ends with a forward slash `/`, the associated CSS and JS files may fail to load properly. This issue can be resolved by adding the `BASE_URL` to the links used to call the CSS and JS files. By doing so, the browser will be able to locate and load the required resources, ensuring that the web page displays correctly. Signed-off-by: Memet Zx --- src/components/head.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/head.php b/src/components/head.php index 4a5c238..f443eaa 100644 --- a/src/components/head.php +++ b/src/components/head.php @@ -1,10 +1,10 @@ - - -<?= e($opt["title"] ?? "") ?> - <?= e(APP_TITLE); ?> - - - - - + + + <?= e($opt["title"] ?? "") ?> - <?= e(APP_TITLE); ?> + + + + + -- Memet Zx