Skip to content

fix: make both node preview and JSON:API work;

Martijn Houtman requested to merge feature/fix-preview-and-jsonapi into master

We have some manual handling for the entity.node.preview route to show the node preview, rather than the current node. The decoupled_router module does not have support for this, and throws an exception.

We fixed this by not calling the parent::onPathTranslation function, but that function is required for handling other info, such as adding info for JSON:API calls.

Merge request reports

Loading