Preview a Policy Page
Policy pages show policyholders their coverage details after purchasing. The Strapi preview button will not load by default because this content type requires a real staging policy.
Build the preview URL
Section titled “Build the preview URL”Construct the URL manually:
https://app.staging.feather-insurance.com/preview/{PREVIEW_STATUS}/policy-details/{DOCUMENT_ID}/{POLICY_ID}| Parameter | Description |
|---|---|
PREVIEW_STATUS |
draft or published |
DOCUMENT_ID |
The Strapi document ID (visible in the URL when viewing the entry) |
POLICY_ID |
ID of a real staging policy that matches the page’s vertical, connected to a user account you are logged into on staging |
Where to find each parameter
Section titled “Where to find each parameter”- DOCUMENT_ID: Open the entry in Strapi. Look at the browser URL bar — the ID is the last segment (e.g.,
...content-manager/collection-types/api::policy-page.policy-page/abc123— the ID isabc123). - POLICY_ID: On the staging app, go to My Policies. Pick a policy and copy its ID from the URL. It looks like a UUID:
550e8400-e29b-41d4-a716-446655440000.
- Open a Policy-Page entry in Strapi admin
- Copy the document ID from the browser URL
- Find a matching staging policy ID (same vertical, connected to your staging user)
- Build the URL using the format above and open it in your browser
- Review the policy details layout, sections, and content
What to verify
Section titled “What to verify”- Modal sections – Check that all
content-modal-bodyandcontent-modal-listsections render with correct text and formatting - Accordion behavior – If using
content-modal-list, verify that items expand and collapse correctly and that icons load next to each title - Action buttons – Confirm that
policyModalButtonsappear with the right labels, and that links point to the correct URLs - Coverage data – Verify that coverage details display the expected plan information
- Rich text rendering – Check that formatted content (bold, lists, links) in body sections renders correctly
Tips for testing
Section titled “Tips for testing”- Policy pages display the modal sections and buttons configured on the Vertical
- Preview reflects the current saved state of the entry
- Try testing with policies in different states (active, cancelled, pending) to verify the page handles each correctly
- If coverage sections look empty, check that the Vertical’s
policyModalSectionsdynamic zone has content
Troubleshooting
Section titled “Troubleshooting”Page shows blank? Check:
- The policy ID exists and belongs to a valid staging policy.
- The policy’s vertical matches the policy page’s vertical.
- You are logged into the staging app with the account that owns the policy.
See also
Section titled “See also”- Preview Routes Reference – all preview URL patterns and parameters
- Configure Policy Modal – how to set up the sections and buttons shown on policy pages
- Preview System – how preview works under the hood