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

+1 -1
View File
@@ -16,6 +16,6 @@ $title = 'Page introuvable | FWS Linux';
<h1>Page introuvable</h1>
<p class="lead">Cette page n'existe pas ou a été déplacée.</p>
<div class="hero-actions">
<a class="button button-primary" href="/?p/index/">Retour à l'accueil</a>
<a class="button button-primary" href="<?= e(fws_url('/?p/index/')) ?>">Retour à l'accueil</a>
</div>
</section>