Multisite: switching site in the collection listing opens a different entry, not the localization

Abierto
#15,829 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
laravel, php

Línea de trabajo

Trace how the collection listing switches sites and resolves localized entries, then compare that path with the working site switcher inside the entry editor. Reproduce with an English origin entry and its Arabic localization, and compare the entry IDs opened by each path. Done means the listing opens the origin entry’s localization and edits made there appear on the frontend.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

multisite
Bug description

On a multisite setup (origin site + localized site), switching the site from the collection listing opens a different entry (different ID) instead of the localization of the origin entry.

Edits made there (e.g. changing a Link field) never reflect on the frontend — the localized page keeps showing the old value.

Switching via the site switcher inside the entry editor works correctly: it opens the real localization and changes show on the frontend.

Expected: the listing should show/open the localizations of the origin entries, not separate entries.

Actual: the listing opens a separate entry that isn't the one being rendered, so changes look saved in the CP but never appear on the frontend.

How to reproduce
  1. Set up multisite with en (origin) and ar.
  2. Create an entry in en with a Link field, then localize it to ar.
  3. Works: Open the en entry → switch to ar via the editor's site switcher → change the link → frontend updates ✅
  4. Broken: Go to the collection listing → switch site to ar → open the same entry → change the link → frontend does not change ❌
  5. Compare entry IDs from steps 3 and 4 — they're different.
Logs

Environment
Environment
Laravel Version: 13.38.0
PHP Version: 8.4.27
Composer Version: 2.8.8
Environment: production
Debug Mode: OFF
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: null
Cache: file
Database: mysql
Logs: stack / single
Mail: microsoft
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Statamic
Addons: 4
License Key: Set
Sites: 2 (English, Arabic)
Stache Watcher: Enabled
Static Caching: Disabled
Version: 6.36.0 PRO

Statamic Addons
emran-alhaddad/statamic-graphql-protect: 1.1.0
emran-alhaddad/statamic-logbook: 2.2.0
isaadsalman/headless-refresh: 1.0.5
statamic/eloquent-driver: 5.12.4

Statamic Eloquent Driver
Addon Settings: eloquent
Asset Containers: eloquent
Assets: eloquent
Blueprints: eloquent
Collection Trees: eloquent
Collections: eloquent
Entries: eloquent
Fieldsets: eloquent
Form Submissions: eloquent
Forms: eloquent
Global Sets: eloquent
Global Variables: eloquent
Navigation Trees: eloquent
Navigations: eloquent
Revisions: file
Sites: eloquent
Taxonomies: eloquent
Terms: eloquent
Tokens: eloquent
Installation

Fresh statamic/statamic site via CLI

Additional details

Happens for every localized entry we tested, not just one.

Lenguaje dominante
PHP
Estrellas
4.9k
Forks
647
Merge medio
23 h 42 min
PR fusionados (30 d)
148

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de statamic/cms

Todos los issues de statamic/cms

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.