Project

General

Profile

Actions

Bug #83755

closed

Extbase TYPO3\CMS\Extbase\Mvc\Controller\AbstractController->redirectToUri() – remove HTML redirect?

Added by Hagen Gebauer over 6 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
-- undefined --
Assignee:
-
Category:
Extbase
Start date:
2018-02-02
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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>

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #88178: Page cache is deleted, when an uncached (Extbase) Plugin performs a redirectClosed2019-04-19

Actions
Actions

Also available in: Atom PDF