project/app/controllers/seo_controller.rb in mvpkit-2.0.1 vs project/app/controllers/seo_controller.rb in mvpkit-2.0.2
- old
+ new
@@ -2,10 +2,10 @@
class SeoController < ActionController::Base
def robots
render text: %%
User-agent: *
Disallow:
- Sitemap: #{MVP::Engine.routes.url_helpers.sitemap_url}
+ Sitemap: #{sitemap_url(host: current_domain.host)}
%, content_type: "text/plain"
end
end
end