#83755Extbase TYPO3\CMS\Extbase\Mvc\Controller\AbstractController->redirectToUri() – remove HTML redirect?
Description
Maybe there is a point to that which I don’t see … but redirecting should in my opinion always be done with header(‘Location: …’) and not by the HTML meta tag. I believe that this method does that correctly at its first call – but then the HTML gets cached while response->setStatus() and response->setHeader() do not. Besides the full page HTML will be written into the content part of the template – see this simplified example:
<!DOCTYPE html>
<html>
<head>
<!-- html header from page/template -->
</head>
<body>
<div class="content">
<html><head><meta http-equiv="refresh" content="..."/></head></html>
</div>
</body>
</html>