wpengine / wpengine/faustjs

Preview isn't working for frontpage

Open
#1,914 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs: reproduction
Dominant language
TypeScript
Stars
1.6k
Forks
155
Avg merge
1d 18h
Merged PRs (30d)
20

Description

Description

When I try to reach the frontpage preview, I got my default page template, without data in props.
Other page and single works fine.

Steps to reproduce
  1. Go to your WordPress frontpage edition
  2. Click on preview link
Additional context

Result with console.log of preview.tsx props:
image

Expected result:
image

@faustwp/core Version

3.0.1

@faustwp/cli Version

3.0.1

FaustWP Plugin Version

1.3.1

WordPress Version

6.5.4

Additional environment details
  • graphql: ^16.6.0
  • PHP Version: 8.2
  • Hosting: local and One.com
Please confirm that you have searched existing issues in the repo.
  • Yes

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue from the WordPress frontpage preview link and inspect the props logged in preview.tsx. Compare the frontpage behavior with the working other-page and single previews. Done means the frontpage preview uses its page data instead of rendering the default template without props.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, nextjs, react, typescript, wordpress
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.