diff --git a/lib/locomotive/import/pages.rb b/lib/locomotive/import/pages.rb index 528adb2f..89ad4622 100644 --- a/lib/locomotive/import/pages.rb +++ b/lib/locomotive/import/pages.rb @@ -74,6 +74,9 @@ module Locomotive # redirection page ? attributes[:redirect] = true if attributes[:redirect_url].present? + # Don't want the editable elements to be imported: they will be regenerated + attributes.delete(:editable_elements) + page = site.pages.where(:fullpath => self.sanitize_fullpath(fullpath)).first || site.pages.build page.attributes = attributes