fix(admin): build admin URLs against the dynamic base URL

Preview thumbnails for package screenshots and the API test link
assumed a root deployment; use fws_url() and derive the scheme
from the request instead of hardcoding https.
This commit is contained in:
BlackAngelTV committed 2026-09-16 14:35:41 +02:00
1 parent ae472fe30a
commit 83933d0621
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -89,7 +89,8 @@ if ($ok) {
exit;
}
$baseUrl = 'https://' . ($_SERVER['HTTP_HOST'] ?? 'fwslinux.fr');
$fwsScheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http';
$baseUrl = $fwsScheme . '://' . ($_SERVER['HTTP_HOST'] ?? 'fwslinux.fr');
$codeValue = $submitted ? $code : '';
$userValue = $submitted ? $username : '';
?>