diff --git a/src/web/router.php b/src/web/router.php index 55f17c3..572e4d9 100644 --- a/src/web/router.php +++ b/src/web/router.php @@ -83,7 +83,11 @@ class Router { } private function get_redirect(): string { - $redirect = $_GET['redirect'] ?? $this->get_post_info('redirect') ?? ''; + $redirect = + $this->get_post_info('redirect') ?? + $_GET['redirect'] ?? + $_SERVER['HTTP_X_FORWARDED_HOST'] ?? + ''; if (is_array($redirect)) { $redirect = $redirect['redirect']; }