X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/0814b4096c443e2ab3c09baa058aa81a00d205d1..3763cbc7d4cdf3fdead477ee093b3c82aabd49fe:/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