app/controllers/alchemy/admin/pages_controller.rb in alchemy_cms-4.1.2 vs app/controllers/alchemy/admin/pages_controller.rb in alchemy_cms-4.2.0.rc1

- old
+ new

@@ -47,10 +47,10 @@ def show @preview_mode = true Page.current_preview = @page # Setting the locale to pages language, so the page content has it's correct translations. ::I18n.locale = @page.language.locale - render layout: 'application' + render(layout: Alchemy::Config.get(:admin_page_preview_layout) || 'application') end def info render layout: !request.xhr? end