X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/777b19c775ec0146664be9604ae6ae87d82bdb78..6f375ef4936ea6e92e84b1473940af7883fba4d6:/app/controllers/export_controller.rb?ds=sidebyside 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