X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3d4a137959573a9bada01e2622613c87b5056f92..49a4efcfa0da3f54fda6aa8fa98beffa31e1c91f:/app/controllers/site_controller.rb?ds=inline diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index 997973922..5c391d7b2 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -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