forked from FWS/FWS-TEMPLATE-Website-OnePage
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:
2 files changed
+4
-3
No files matched your search
@@ -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 : '';
|
||||
?>
|
||||
|
||||
Reference in new issue
Block a user