I'm running version 2.4.7 with HTTPS setup for use in the admin section of the site. Everything is fine except for when Saving and Publishing an error page. The call to EditForm returns a 301 (Moved permanently) with the Location header set to the HTTP page that is being saved.
E.g. If I save and publish "page-not-found" (404 Error Page) the location header in the 301 from the EditForm action will be http://mysite.com/page-not-found (note that the location is being set to HTTP and not HTTPS).
The other strange thing is that with Dev mode enabled this problem doesn't exist and the page saves successfully.
I have had a look into the depths of the SilverStripe request handling classes but I am hesitant to change anything because it could have widespread effects over the whole site.
Has anyone encountered this problem or would anyone have any clues as to what might be causing this issue?