You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've searched for any related issues and avoided creating a duplicate issue.
Please give us a description of what happened.
The snippetpreview function does not show the correct preview of pages that have start and endtime settings.
This should be because of the restrictions, that are not removed when accessing the page within the snippetpreview.
Please describe what you expected to happen and why.
I expected the correct meta information of the page.
Hidden pages work, as the restriction is removed AFAIK
How can we reproduce this behavior?
create a page with e.g. a starttime (publish date) in the future
check the snippetpreview which should show the rootpage or comparable but not the right meta
Technical info
TYPO3 version: v9 LTS
Yoast SEO version: v5.0.0 (and above i guess)
The text was updated successfully, but these errors were encountered:
So its been over 5 years 😂 we got a solution on our own by now, but i want to provide that @RinyVT
First: for the PageRequestMiddleware we got a simple override, that changes the VisibilityAspect
instead of a simple true, we add true, false, false, true as Params
This solves the main issue.
But when using redis this causes another issue, because for pages, that have an endtime in the past the cache entry is a negative value which breaks within redis
to solve this we got a second override.
In earlier version we used the initCaches method in StructuredDataProviderManager, now we override the constructor.
It basically looks like this:
public function __construct(
protected FrontendInterface $pageCache
) {
if (!($GLOBALS['TYPO3_REQUEST'] ?? null) instanceof ServerRequestInterface ||
!ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isFrontend() ||
$this->getCacheTimeout() >= 0
) {
return;
}
$this->pageCache = new VariableFrontend('dummy', new NullBackend(''));
}
Maybe you find a better solution and improve this
Or an event is added to handle the cache in a better way
Please give us a description of what happened.
The snippetpreview function does not show the correct preview of pages that have start and endtime settings.
This should be because of the restrictions, that are not removed when accessing the page within the snippetpreview.
Please describe what you expected to happen and why.
I expected the correct meta information of the page.
Hidden pages work, as the restriction is removed AFAIK
How can we reproduce this behavior?
Technical info
The text was updated successfully, but these errors were encountered: