X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/043d29fd7eb72048cf5d07edfbc20ec5c25af708..f02c753cc4ab882537ac75065c6c65605e8dc9fe:/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