diff --git a/src/Pages/RedirectPage.php b/src/Pages/RedirectPage.php index 598bd51..5e712b7 100644 --- a/src/Pages/RedirectPage.php +++ b/src/Pages/RedirectPage.php @@ -29,6 +29,9 @@ public static function addRoutes( RouteCollector $r ): void { public function getResponse(): WebResponse { $target = self::KNOWN_REDIRECTS[ $this->title ]; + if ( str_starts_with( $target, 'https://' ) ) { + return new WebResponse( '', [ 'Location: ' . $target ], 302 ); + } return new WebResponse( '', [ 'Location: //' . $_SERVER['HTTP_HOST'] . $target ],