Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Fixed rendering page sections inside other engines, eg. devise with s… (#12455)
Damian Legawiec5d104daf2930
diff --git a/storefront/app/helpers/spree/page_helper.rb b/storefront/app/helpers/spree/page_helper.rbindex b9d1c8791e..39d3d5cd02 100644--- a/storefront/app/helpers/spree/page_helper.rb+++ b/storefront/app/helpers/spree/page_helper.rb@@ -26,7 +26,7 @@ module Spreeeditor_link: spree.edit_admin_page_section_path(section)}) do- render(section, **variables)+ render('/' + section.to_partial_path, **variables)endendelsif section.lazy? && lazy_allowed@@ -36,10 +36,10 @@ module Spreepath = section.lazy_path(variables)turbo_frame_tag("section-#{section.id}", src: path, loading: 'eager') do- render(section, **variables)+ render('/' + section.to_partial_path, **variables)endelse- render(section, **variables)+ render('/' + section.to_partial_path, **variables)endrescue ActionView::MissingTemplate, ActionView::Template::Error => eraise e unless Rails.env.production?