diff --git a/Classes/Controller/PageController.php b/Classes/Controller/PageController.php index e5430c4..1fa7f73 100644 --- a/Classes/Controller/PageController.php +++ b/Classes/Controller/PageController.php @@ -14,7 +14,7 @@ * source code. */ -use Neos\ContentRepository\Domain\Model\NodeInterface; +use Neos\ContentRepository\Core\Projection\ContentGraph\Node; use Neos\Flow\Mvc\Controller\ActionController; use Neos\Flow\Mvc\Exception\StopActionException; use Neos\Neos\Controller\Frontend\NodeController; @@ -25,10 +25,10 @@ class PageController extends ActionController /** * Redirects request to the given node in preview mode without the neos backend * - * @param NodeInterface $node + * @param Node $node * @throws StopActionException */ - public function renderPreviewPageAction(NodeInterface $node): void + public function renderPreviewPageAction(Node $node): void { $previewAction = 'preview'; diff --git a/Resources/Private/Fusion/Components/Application.fusion b/Resources/Private/Fusion/Components/Application.fusion index 6d5527e..b1b3f25 100644 --- a/Resources/Private/Fusion/Components/Application.fusion +++ b/Resources/Private/Fusion/Components/Application.fusion @@ -17,7 +17,7 @@ prototype(Yoast.YoastSeoForNeos:Component.Application) < prototype(Neos.Fusion:T workerUrl = Neos.Fusion:ResourceUri { path = 'resource://Yoast.YoastSeoForNeos/Public/Assets/webWorker.js' } - previewUrl = ${'/neosyoastseo/page/renderPreviewPage?node=' + String.rawUrlEncode(documentNode.contextPath)} + previewUrl = ${'/neosyoastseo/page/renderPreviewPage?node=' + String.rawUrlEncode(Neos.Node.serializedNodeAddress(documentNode))} baseUrl = Yoast.YoastSeoForNeos:BaseUri siteUrl = Neos.Neos:NodeUri { node = ${q(site).context({workspaceName: 'live'}).get(0)} diff --git a/composer.json b/composer.json index a1a7b45..d68d05b 100644 --- a/composer.json +++ b/composer.json @@ -23,10 +23,10 @@ ], "homepage": "https://yoast.com", "require": { - "php": ">=7.4", - "neos/neos": "^7.3 || ^8.3", - "neos/neos-ui": "^7.3 || ^8.3", - "neos/seo": "~3.0", + "php": "^8.2", + "neos/neos": "^9", + "neos/neos-ui": "^9", + "neos/seo": "^4.1", "ext-json": "*" }, "replace": {