decap-cms icon indicating copy to clipboard operation
decap-cms copied to clipboard

View Preview link is missing for any new post created in Workflow

Open luisglopez7777 opened this issue 2 years ago • 1 comments

Describe the bug The "View Preview" link is missing in CMS for any new post created in Workflow.

To Reproduce

  1. Go to the CMS and click on workflow in the nav bar
  2. Click on "New Post", fill out the required fields and click on "Save"
  3. 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 ExpectedBehaviour PreviewLinkMissing

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.

luisglopez7777 avatar Jun 10 '22 16:06 luisglopez7777

I'm also using git-gateway with the editorial workflow, and deploy preview links have stopped working recently for our site as well.

tmlamb avatar Jun 24 '22 20:06 tmlamb