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=1681545562; bh=ATRc2dKk4E/h13496Rc082/IN9RlV6r/TMQhvQMTz2g=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ZjOn2qWirieU6ojvNwbn6y9W+lrGKfISQ8VtN0FIdhQJOFHDvhRprWpfNEPns/sXC kUU9fp1T9m0nb+lTbH+aP6e9rk5QVMfYsaZ/UAXRL6NjzZ+XkcIuBoxCISIr1CocPw U+EQK6uA6Yt8oP/xRRXNnElkC7chj0iwcdSggfRHJcIR1UOmqpa17BAT/b+F0qggsM 4RSsuoAbwDApoHK4x/Rph/52SYR4ssazuXq0hrV47Kes9H6ufbdrajap8IlhY0rojm v4HKxFU7i/WcIuiyDUXmzCmlpEc3QPrqe6B3HHWx3J6BO7oUBgUFXhbPbKLIS4UYye 2IdHhe4cDYiIw== Received: from localhost.localdomain (unknown [182.1.21.53]) by gnuweeb.org (Postfix) with ESMTPSA id E86B72454EF; Sat, 15 Apr 2023 14:59:20 +0700 (WIB) From: Memet Zx To: GNU/Weeb Mailing List Cc: Ammar Faizi , Memet Zx Subject: [PATCH: Website v1 1/2] head.php: Fix issue with css/js head section Date: Sat, 15 Apr 2023 14:59:03 +0700 Message-Id: <20230415075904.237392-2-zxce3@gnuweeb.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230415075904.237392-1-zxce3@gnuweeb.org> References: <20230415075904.237392-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