danestves / danestves/strapi-plugin-preview-content

Strapi v.3.6.5 - draft content not found

Open
#33 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
63
Forks
26
PR merge metrics
No merged PRs in 30d

Description

Hi - I'm from a backend development background - so this issue is possibly due to lacking javascript knowledge.

Having installed the preview plugin - this works for cloning, and getting published content - via the preview API using a url like this:
/preview-content/custom-pages/2

However - for draft content - we get a 404 and the message: "Preview not found for given content type and Id".

Trying to debug the plugin - I can see that that line 131 in preview.js is returning null:
![image](https://user-images.githubusercontent.com/95475775/158404477-e4e9d98f-2cc2-465a-af3b-ef59b416ede6.png)

However I am unable to identify why this is.

Any help much appreciated!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.