]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/export_controller.rb
Add a with_history trait for node factories, to automatically create corresponding...
[rails.git] / app / controllers / export_controller.rb
index 6e5016ddce4ec7eb6b0fcfaab09fb9634ffe8045..1b7beaad696dd8ca3503babaa26e67748a70e511 100644 (file)
@@ -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