diff --git a/resources/library/redirect.php b/resources/library/redirect.php index d458b14..e18370f 100644 --- a/resources/library/redirect.php +++ b/resources/library/redirect.php @@ -13,9 +13,8 @@ */ function redirect(string $page): void { - $scheme = $_SERVER['REQUEST_SCHEME']; $host = $_SERVER['HTTP_HOST']; $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); - header("Location: $scheme://$host$uri/$page"); + header("Location: //$host$uri/$page"); exit; }