]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Support legacy bbox param on /history as well
[rails.git] / app / controllers / site_controller.rb
index 9979739228d87366a7ffe09ee07a928c37979cf1..5c391d7b228359ca6041f8c26d9b5f86c9dc35bb 100644 (file)
@@ -41,6 +41,7 @@ class SiteController < ApplicationController
     editor = preferred_editor
 
     if editor == "remote"
+      require_oauth
       render :action => :index
       return
     end
@@ -96,6 +97,8 @@ class SiteController < ApplicationController
       redirect_to relation_path(params[:relation])
     elsif params[:note]
       redirect_to browse_note_path(params[:note])
+    elsif params[:query]
+      redirect_to search_path(:query => params[:query])
     end
   end