diff --git a/framework/core/src/Support/Action.php b/framework/core/src/Support/Action.php index 31599a950..b87fe9970 100644 --- a/framework/core/src/Support/Action.php +++ b/framework/core/src/Support/Action.php @@ -1,7 +1,8 @@ call($params); } + + /** + * @param string $url + * @return \Psr\Http\Message\ResponseInterface + */ + protected function redirectTo($url) + { + $content = sprintf(' + + + + + + Redirecting to %1$s + + + Redirecting to %1$s. + +', htmlspecialchars($url, ENT_QUOTES, 'UTF-8')); + + return new Response($content, 302, ['location' => $url]); + } }