#101387Impossible to set meta tag "robots" from within uncached extbase controller action (using the MetaTag API)
Description
Meta tags “keywords” and “description” can be set from within an uncached extbase controller action using the MetaTag API as follows:
$metaTagRegistry = GeneralUtility::makeInstance(MetaTagManagerRegistry::class);
$metaTagRegistry->getManagerForProperty('keywords')->addProperty('keywords', $keywords);
$metaTagRegistry->getManagerForProperty('description')->addProperty('description', $description);
But it is not possible to set meta tag “robots” using the same way:
$metaTagRegistry = GeneralUtility::makeInstance(MetaTagManagerRegistry::class);
$metaTagRegistry->getManagerForProperty('robots')->addProperty('robots', $robots);
It seems that “robots” can only be set from within a cached action. This should be fixed to be able to modify “robots” even if plugin is uncached.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.