Skip to content

Writing another frontend

Consumer Node Preview's target URLs show how a frontend reads the preview address from the URL. They include a fix for routers that turn https:// into https:/. Before it renders anything, a frontend should make the same checks as this module. See The preview request.

This module reads [view_mode] and [layout] from the vm and layout query parameters. They change only how the preview looks. The JSON:API document is the same for each.