Skip to content

alwaysVisible option for published links not working in Strapi 5 #150

Open
@sven-ra

Description

@sven-ra

Hello,

currently migrating a site to Strapi 5, the alwaysVisible doesn't seem to be working anymore.
I tried to add it to different levels of the config, but if I understand the docs correctly, this should work:

"preview-button": {
    config: {
      contentTypes: [
        {
          uid: "api::page.page",
          draft: {
            url: `${env("SITE_URL")}/api/preview`,
            query: {
              type: "pages",
              slug: "{slug}",
              locale: "{locale}",
              secret: env("VERY_SECRET_TOKEN"),
            },
          },
          published: {
            url: `${env("SITE_URL")}/{locale}/{slug}`,
            alwaysVisible: true
          },
        },
      ],
    },
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions