Redirect requests to app-specific ACP landing pages using PSR-7
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 20 Jun 2022 15:13:17 +0000 (17:13 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 20 Jun 2022 17:07:12 +0000 (19:07 +0200)
wcfsetup/install/files/lib/system/request/RequestHandler.class.php

index fa1516564ec5b027d3fa535b5e0e9ec64cb2d331..697347879b23dd69cdf9203b94f46ede577b7e08 100644 (file)
@@ -132,9 +132,10 @@ final class RequestHandler extends SingletonFactory
                     $routeData['controller'] = 'index';
 
                     if ($application !== 'wcf') {
-                        HeaderUtil::redirect(LinkHandler::getInstance()->getLink(), true, false);
-
-                        exit;
+                        return new RedirectResponse(
+                            LinkHandler::getInstance()->getLink(),
+                            301
+                        );
                     }
                 }
             } else {