Sha256: e52ac2e416471a17f9e7c6ff3fbfd9dfc8c24c9633ae60401da7cf42962aa6e5

Contents?: true

Size: 282 Bytes

Versions: 12

Compression:

Stored size: 282 Bytes

Contents

# frozen_string_literal: true

module Maglev
  module SitemapHelper
    def sitemap_url(host, page, locale = nil)
      path = maglev_services.get_page_fullpath.call(page: page, locale: locale)

      return path if path =~ %r{^https?://}

      [host, path].join
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
maglevcms-1.7.3 app/helpers/maglev/sitemap_helper.rb
maglevcms-1.7.2 app/helpers/maglev/sitemap_helper.rb
maglevcms-1.7.1 app/helpers/maglev/sitemap_helper.rb
maglevcms-1.7.0 app/helpers/maglev/sitemap_helper.rb
maglevcms-1.6.1 app/helpers/maglev/sitemap_helper.rb
maglevcms-1.6.0 app/helpers/maglev/sitemap_helper.rb
maglevcms-1.5.1 app/helpers/maglev/sitemap_helper.rb
maglevcms-1.4.0 app/helpers/maglev/sitemap_helper.rb
maglevcms-1.3.0 app/helpers/maglev/sitemap_helper.rb
maglevcms-1.2.2 app/helpers/maglev/sitemap_helper.rb
maglevcms-1.2.1 app/helpers/maglev/sitemap_helper.rb
maglevcms-1.2.0 app/helpers/maglev/sitemap_helper.rb