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