decap-cms
decap-cms copied to clipboard
View Preview link is missing for any new post created in Workflow
Describe the bug The "View Preview" link is missing in CMS for any new post created in Workflow.
To Reproduce
- Go to the CMS and click on workflow in the nav bar
- Click on "New Post", fill out the required fields and click on "Save"
- After the entry is saved the "View Preview" link is missing, should be to the left of "Set Status" in the nav bar
Expected behavior After creating an entry on Workflow a "View Preview" link should appear to the left of "Set Status" in the nav bar. This preview link helps to view live content when it has not been published
Screenshots
Applicable Versions:
- Netlify CMS version: 2.12.19
- Git provider: GitLab
- OS: macOS Monterey
- Browser version: chrome 102
- netlify-cms-app: 2.12.19
- gatsby-plugin-netlify-cms: 4.2.1
- Node.JS version: 10.21
CMS configuration Configured with package netlify-cms-app const initCMS = (collections) => { CMS.init({ config: { backend: { name: 'git-gateway', branch: process.env.GATSBY_CMS_BRANCH, commit_messages: { create: 'Create {{collection}} “{{slug}}”', update: 'Update {{collection}} “{{slug}}”', delete: 'Delete {{collection}} “{{slug}}”', uploadMedia: '[skip ci] Upload “{{path}}”', deleteMedia: '[skip ci] Delete “{{path}}”', }, }, publish_mode: 'editorial_workflow', local_backend: true, load_config_file: false, media_folder: 'static/img', show_preview_links: true, public_folder: '/img', collections, }, }) }
Additional context The preview link still works for older entries, and suddenly stopped working for new entries. We already updated the access token in GitLab but didn't worked.
I'm also using git-gateway with the editorial workflow, and deploy preview links have stopped working recently for our site as well.