Skip to content

Admin View published links ignore entry locale #2874

Closed

Description

@screenfluent

Description

In an i18n site, the admin's "View published" links ignore the entry locale.

Version: 0.36.0

Minimal configuration:

  • default locale: en
  • locales: en, pl
  • prefixDefaultLocale: false
  • collection urlPattern: /posts/{slug}

Steps to reproduce

  1. Create and publish a Polish entry with the slug polski-test.
  2. Click "View published" in the content list or editor.

Actual URL: /posts/polski-test

Expected URL: /pl/posts/polski-test

Entries in the default English locale should remain unprefixed.

The preview endpoint already supports locale-aware paths through EMDASH_PREVIEW_PATH_PATTERN and {locale}, but the published link builder only interpolates {slug} and is called without the entry locale.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions