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

CMS Preview has issues with subsites #1182

Open
2 tasks done
wilr opened this issue May 6, 2024 · 0 comments
Open
2 tasks done

CMS Preview has issues with subsites #1182

wilr opened this issue May 6, 2024 · 0 comments

Comments

@wilr
Copy link
Member

wilr commented May 6, 2024

Module version(s) affected

All

Description

The CMS Preview when using subsites with Elemental always shows the main website and not the relevant subsite.

This is because on the Element class, CMSPreviewLink uses the 'Link' method of the page (which may return mainsite.cwp.govt.nz/page/url) not subsite aware version of the correct CMS preview link (mainsite.cwp.govt.nz/page/url?SubsiteID=1)

How to reproduce

This will manifest itself in a few ways the the easiest way to reproduce is

  • When using subsites and editing a subsite from the main site domain (i.e *.cwp.govt.nz).
  • The block is non-inline editable.
  • The CMS Preview will incorrectly displaying the main website and not the subsite.

Possible Solution

Additional Context

No response

Validations

  • Check that there isn't already an issue that reports the same bug
  • Double check that your reproduction steps work in a fresh installation of silverstripe/installer (with any code examples you've provided)

PRs

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

2 participants