You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a SilverStripe\ErrorPage\ErrorPage page type in the project which sets the ErrorCode to 404. When I am in the CMS, to split view to preview the page. it shows the /admin/pages page instead. I have found this caused by LocaleSwitchRedirector.
How to reproduce
Create any two locales
Edit ErrorPage type with 404 code
Preview the page by split view, you will see it display the admin/pages instead of error page template.
Possible Solution
I have temporarily fixed it by using the Injector and added the additional condition for it, !$request->getVar('CMSPreview').
Additional Context
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)
The text was updated successfully, but these errors were encountered:
Module version(s) affected
7.1
Description
I have a
SilverStripe\ErrorPage\ErrorPage
page type in the project which sets the ErrorCode to 404. When I am in the CMS, to split view to preview the page. it shows the/admin/pages
page instead. I have found this caused by LocaleSwitchRedirector.How to reproduce
Possible Solution
I have temporarily fixed it by using the Injector and added the additional condition for it,
!$request->getVar('CMSPreview'
).Additional Context
Validations
silverstripe/installer
(with any code examples you've provided)The text was updated successfully, but these errors were encountered: