Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entries Multisite CP Navigation Bug #4121

Closed
davidhellmann opened this issue Apr 10, 2019 · 12 comments
Closed

Entries Multisite CP Navigation Bug #4121

davidhellmann opened this issue Apr 10, 2019 · 12 comments

Comments

@davidhellmann
Copy link
Contributor

davidhellmann commented Apr 10, 2019

Description

We have some Multisites on our installation. There is a Single Entry Startseite (Home) for Each Site. When I switch between the Site via the Dropdown and afterwards I click on the Startseite Entry I come to a other Multisite.

Maybe Images can describe it better:

image

I'm on this site: When I hover over the Home (It must called be Startseite but it doesn't switch when I switch a site) I get this link:

https://www.bistum-passau.de/admin/entries/home/2-homepage/default

When I hover on Home Sub Site in the table on the right I get this Link (this one is the right link):

https://www.bistum-passau.de/admin/entries/homeSubSite/10678-home-sub-site/pfarrverbandBurghausenDe

But it becomes more strange after Reload:
image

Now on the left there is the Startseite but when I hover now I get this link:

https://www.bistum-passau.de/admin/entries/homeSubSite/10678-home-sub-site/bistumsblattDe

To make it a bit more clear here is a short video. Look at the status bar when I hover on the links.

https://drive.google.com/file/d/1vusjpkGIBhfHoNUn5WNgvpMNBsaSGGYj/view

Additional info

  • Craft version: 3.1.15
  • PHP version: 7.2
  • Database driver & version: MySQL 8
@davidhellmann davidhellmann changed the title Entries Multisite CP Navigation Entries Multisite CP Navigation Bug Apr 10, 2019
@brandonkelly
Copy link
Member

Do you have multiple “Home” sections defined in Settings → Sections? Which sites are each of them enabled for?

@davidhellmann
Copy link
Contributor Author

I have two Home Sections. One for the Main Page and one for the subpages. The setup looks like this:

Main Site:
image

Sub Sites:
image

I can imagine whats happen here. Craft can handle just one HOME Template? Is there a way to fix that cause I need different Fields on the Pages.

Thanks for looking into it @brandonkelly

@brandonkelly
Copy link
Member

@davidhellmann Yeah so if there are two different “Home” sections, Craft isn’t going to maintain selection between them when switching between your main site and a subsite. Wouldn’t really be possible either so this will just have to be a slightly awkward behavior on your site.

@davidhellmann
Copy link
Contributor Author

@brandonkelly but how can I have two different Home templates. Site A has this fields and Site B hast other fields. 🤔

@brandonkelly
Copy link
Member

You can’t, so having two Home sections is the right way to go.

@christophpaster
Copy link

@brandonkelly — I'm working with @davidhellmann on this: It's unfortunately beyond "slightly awkward": When multisite-users (only having access to 1 multisite) want to edit their Homepage, they get an Unauthorized-Error. That's because the Home-Entry of another Multisite is requested.

It seems like the shortname of a Site is added to the URI. Once you delete the shortname manually, you get to the right entry in the CP.

@brandonkelly
Copy link
Member

@christophpaster @davidhellmann can you send your composer.json and composer.lock files, and a database backup, to [email protected], and reference this issue + point us to the user account that this is happening for?

@martinhellwagner
Copy link

@brandonkelly I have sent the requested files already for issue #4172. However, I just sent you the updated composer.json and composer.lock plus the Google Drive link to the updated DB dump in an e-mail.

@martinhellwagner
Copy link

@brandonkelly Any news on this?

@brandonkelly
Copy link
Member

@christophpaster we just looked into it with the Composer files and database you sent. It looks like the behavior you’re seeing is due to the Expanded Singles plugin. If you disable that, it should work as expected.

@martinhellwagner
Copy link

/cc @davidhellmann

@davidhellmann
Copy link
Contributor Author

@engram-design Brandon said it‘s a bug related to expanded singles. I disabled the plugin and it looks like it works. Maybe you can look into it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants