fix(pages): make page URLs and assets base-aware

Root-absolute asset paths and ?p= links broke when the site is
served from a subfolder (WAMP). Screenshots from the database and
avatars from creators.json go through fws_url() as well.
This commit is contained in:
BlackAngelTV committed 2026-09-16 14:35:33 +02:00
1 parent da74767843
commit ae472fe30a
7 files changed
+25 -25

No files matched your search

+2 -2
View File
@@ -18,8 +18,8 @@ $mode = $releases['mode'];
$title = 'Téléchargements | FWS Linux';
$description = 'Téléchargez FWS Linux — dernière version stable et archives des versions précédentes. ISO légère basée sur Arch Linux.';
$extraCss[] = '/p/assets/styles/downloads.css';
$extraJs[] = '/p/assets/js/note-toggle.js';
$extraCss[] = fws_url('/p/assets/styles/downloads.css');
$extraJs[] = fws_url('/p/assets/js/note-toggle.js');
$latest = $items[0] ?? null;
$previous = array_slice($items, 1, 5);