-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preview not working for CPT in draft #1920
Comments
I can replicate the issue as well with the vanilla faust example setup. |
Anything new here to resolve this issue ? |
Any updates here ? I'm experiencing the same issue. Or any workaround would be great ... For a CPT named actor for example, I've got the preview link : /preview/?post_type=actor&p=245&preview=true Obviously this lends to this error
Thanks |
Well I think it's a problem on the cms plugin side, since the url is missing some query arguments. The workaround is not to preview from the edition page, but just go back to the CPT list in your cms, and use the previsualise button from there , it contains the right url. |
Description
When I try to reach the preview page of a CPT in draft, I got the following error:
The URL must contain the proper "previewPathname" query param for previews.
.The URL returned from WP preview button when page isn't published: http://localhost:3000/preview?post_type=recrutement&p=20766&preview=true&_thumbnail_id=328
Steps to reproduce
Additional context
An issue was already opened in the past for a similar issue and get closed due to 2 PR's that was normally fix the issue: #1561
@faustwp/core Version
3.0.3
@faustwp/cli Version
3.0.2
FaustWP Plugin Version
1.3.2
WordPress Version
6.5.4
Additional environment details
No response
Please confirm that you have searched existing issues in the repo.
The text was updated successfully, but these errors were encountered: