X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c57d2b29fc1f4647b460b6b74d072c409932e3f2..33669daefbf86e224fba02e28a3f3091b0571bbd:/app/controllers/export_controller.rb diff --git a/app/controllers/export_controller.rb b/app/controllers/export_controller.rb index 6e5016ddc..1b7beaad6 100644 --- a/app/controllers/export_controller.rb +++ b/app/controllers/export_controller.rb @@ -12,7 +12,7 @@ class ExportController < ApplicationController if format == "osm" # redirect to API map get - redirect_to "http://api.openstreetmap.org/api/#{API_VERSION}/map?bbox=#{bbox}" + redirect_to :controller => "api", :action => "map", :bbox => bbox elsif format == "mapnik" # redirect to a special 'export' cgi script