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

オープン
#15,829 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
laravel, php
領域
backend, databases

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
PHP
スター
4.9k
フォーク
647
平均マージ
23時間 42分
マージ済み PR(30日)
148

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

statamic/cms のほかの issue

statamic/cms の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。