resolve/refinerycms — Issue #1399: When loading a preview the root association should return the right page
Author: miskander
Created: 2012-03-05 13:38:56+00:00
State: open

I am having to add a lot of checks in my layouts because page.root is returning nil. I understand that the page is not saved yet, but .root could probably still return either self (no root) OR the associated parent page that was associated before clicking preview. This way the layout that is generated would be as close as possible to what would happen after saving.