What problem does it solve?
When building sites with Webiny Website Builder, live preview URLs often need extra query parameters — signed tokens, tenant identifiers, or feature flags — that the platform does not add by default. This Skill shows how to implement and register a PreviewUrlModifier so every preview URL carries the parameters your project requires.
Core Features & Use Cases
- Custom Parameter Injection: Implement the PreviewUrlModifier interface to mutate the preview URL's searchParams with any key-value pairs.
- Async Modifier Support: Fetch remote values, such as a signed token from an API, inside an async modify method before the URL is used.
- Full Registration Pattern: Wire the implementation through createFeature, RegisterFeature, and webiny.config.tsx so it applies to the editor iframe, the copy-preview-link button, and pages list preview icons.
- Use Case: A multi-tenant project needs each preview link to carry a tenant identifier and a short-lived signed token so the frontend can authorize the preview request.
Quick Start
Ask the AI to implement a PreviewUrlModifier that adds a custom query parameter to all Website Builder preview URLs and register it in webiny.config.tsx.