Deprecation: #88862 - T3_RETURN_URL

See forge#88862


The JavaScript variable T3_RETURN_URL holding the returnUrl sent with the current request either via GET or POST has been marked as deprecated.


Since this is a global JavaScript variable, no proper deprecation layer applies and thus no deprecation notice is rendered.

Affected Installations

All third party extensions using T3_RETURN_URL are affected.


Get the submitted returnUrl by using PHP:

// Variant 1
$returnUrl = GeneralUtility::sanitizeLocalUrl(GeneralUtility::_GP('returnUrl'));

// Variant 2
$returnUrl = $request->getParsedBody()['returnUrl'] ?? $request->getQueryParams()['returnUrl'] ?? '';