Browse Source

fixed bar uri bug by switching to spree's internal mechanism for determining site_url

1-2-stable-sysmocom
jackkinsella 10 years ago
parent
commit
25cf0fda1e
  1. 2
      lib/spree_sitemap_generator/spree_defaults.rb

2
lib/spree_sitemap_generator/spree_defaults.rb

@ -1,6 +1,6 @@
module SpreeSitemapGenerator::SpreeDefaults
def default_url_options
{:host => URI.parse(SitemapGenerator::Sitemap.default_host).host}
{:host => "http://" + Spree::Config[:site_url]}
end
include ::Rails.application.routes.url_helpers

Loading…
Cancel
Save