craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.22k stars 626 forks source link

[4.x]: Selecting a different site in the CP Entries view doesn't update the sidebar links #13723

Open gregorydavidjenkins opened 12 months ago

gregorydavidjenkins commented 12 months ago

What happened?

Description

In a multisite set up, when I'm looking at the list of entries (for Site A) in Craft's control panel and I select a different site (Site B, let's say), I would expect clicking "Globals" or "Assets" in the sidebar to take me to Site B's globals or assets, instead those links still take me to the globals or assets for Site A.

If after selecting Site B from the sites dropdown I refresh the page, those sidebar links do get updated as expected.

Steps to reproduce

  1. Have a multisite set up
  2. Navigate to the entries page in the control panel
  3. Change sites with the dropdown
  4. (don't refresh)
  5. The links in the sidebar still link to the first site (not the site that you switched to)

Expected behavior

  1. The sidebar links should link to the respective page on the site you switched to.

Actual behavior

  1. The sidebar links still link to the site that was selected before you switched sites – unless you refresh the page, then it works as expected.

Craft CMS version

4.5.5

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

No response

i-just commented 12 months ago

Hi, thanks for getting in touch. I can’t replicate this behaviour. Can you please share the list of the plugins you use and let me know if there’s anything useful in the console when you switch sites?

gregorydavidjenkins commented 12 months ago

Gladly!

Amazon S3 2.0.3 Blitz 4.5.4 Colour Swatches 4.3.0 CP Field Inspect 1.4.4 Embedded Assets 3.1.8 Environment Label 4.0.3 Expanded Singles 2.0.5 Formie 2.0.36 Google Maps 4.3.5 Imager X 4.2.2 MatrixMate 2.1.3 Navigation 2.0.21 Palette 3.2.2 Quick Field 2.0.5 Redactor 3.0.4 Redactor Split 4.0.0 Reverse Relations 2.0.0 SEO Content 4.0.31 SEO Redirects 4.1.13 Similar 4.0.0 Sprig 2.6.2 Super Table 3.0.9 Typed link field 2.1.5 UI Element fields 2.0.3 Vite 4.0.6 Vizy 2.1.9

The only thing I see in the console when switching sites is things that look like this: Expanded Singles: 3: https://sites.dpr.com/entries/homepage/1-homepage?site=surepods shim.js:1

Where "3" in this case seems to relate to the siteId.

i-just commented 12 months ago

Thanks! Could you please disable all the plugins and check if this continues to happen; and also, try in a private mode or a different browser?