Using $GLOBALS['TSFE']->fePreview has been deprecated in TYPO3v10 and
removed in v11. It generates a deprecation warning:
TYPO3 Deprecation Notice: Property $TSFE->fePreview is not in use anymore
as this information is now stored within the FrontendPreview aspect.
in typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php line 4101
Using $GLOBALS['TSFE']->fePreview has been deprecated in TYPO3v10 and removed in v11. It generates a deprecation warning:
Relevant changelog entries:
This patch uses the new context aspect if it exists, and falls back to TSFE->fePreview in old TYPO3 versions.
Resolves: https://github.com/FluidTYPO3/vhs/issues/1775
How to test
Preview a disabled page in the frontend