StaticJsCMS / static-cms

A Git-based CMS for Static Site Generators
https://staticjscms.netlify.app/
MIT License
595 stars 52 forks source link

Collection's preview_path is not working #1113

Open Isma-LB opened 6 months ago

Isma-LB commented 6 months ago

Hi, I'm not sure if this is a bug or documentation error, in the configuration options page (#site URL) is written

The site_url setting should provide a URL to your published site. May be used by Static CMS for various functionality. Used together with a collection's preview_path to create links to live content.

However the CMS is ignoring the preview_path configuration on collections, it does not show a link to the live content. It only shows the URL configured as display_url if defined otherwise it shows site_url

Is this a bug in preview_path? or is this feature not supported and the documentation is misleading?

Thanks for the awesome work with this CMS! :smiley:

ps. I'm migrating from Decap CMS where the preview_path was working for me

elrender commented 3 months ago

@KaneFreeman Hey, can we have a confirmation whether Preview Links are supported or not?

I am also looking for this as I have got already working preview CI flow for Decap CMS and I was wondering if I can adapt it to show preview link in the Static CMS. It would be very helpfull for the editors.

Decap migration guide doesn't mention this.