Sha256: 00ab04e0956210dbf104ca790de384c34fdc26677f8a7d4b881c3bd7745a4b45

Contents?: true

Size: 402 Bytes

Versions: 11

Compression:

Stored size: 402 Bytes

Contents

module Spree
  module Admin
    module CmsHelper
      def cms_page_preview_url(page)
        page_localization = if page.locale == current_store.default_locale
                              nil
                            else
                              page.locale
                            end

        spree_storefront_resource_url(page, locale: page_localization)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spree_backend-4.3.3 app/helpers/spree/admin/cms_helper.rb
spree_backend-4.3.2 app/helpers/spree/admin/cms_helper.rb
spree_backend-4.4.1 app/helpers/spree/admin/cms_helper.rb
spree_backend-4.4.0 app/helpers/spree/admin/cms_helper.rb
spree_backend-4.4.0.rc2 app/helpers/spree/admin/cms_helper.rb
spree_backend-4.3.1 app/helpers/spree/admin/cms_helper.rb
spree_backend-4.4.0.rc1 app/helpers/spree/admin/cms_helper.rb
spree_backend-4.3.0 app/helpers/spree/admin/cms_helper.rb
spree_backend-4.3.0.rc3 app/helpers/spree/admin/cms_helper.rb
spree_backend-4.3.0.rc2 app/helpers/spree/admin/cms_helper.rb
spree_backend-4.3.0.rc1 app/helpers/spree/admin/cms_helper.rb