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

Duplicating a page into another subsite doesn't switch to that subsite #426

Open
robbieaverill opened this issue May 31, 2019 · 1 comment

Comments

@robbieaverill
Copy link
Contributor

SS 4.4.x-dev with subsites 2.3.x-dev

  • Create a "second subsite" subsite
  • Ensure you're in the main site
  • Create a page
  • Duplicate that page into the "second subsite"

Expected: the CMS should load the duplicated page and switch to the "second subsite"

Actual: the CMS loads the duplicated page, but it loads it in the main site context. The SiteTree is filtered by the second subsite, but the LHS menu is in the main site still

@micschk
Copy link
Contributor

micschk commented Sep 27, 2022

Probably related to some code in the page's related SiteConfig being run (See #477 ).
This seems to be fixed when you write the new page including components.

// write WITH components (else somehow the subsite seems to not get fully updated correctly)
$sourcePage->write(null, null, null, true);

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

No branches or pull requests

3 participants