editor = preferred_editor
if editor == "remote"
+ require_oauth
render :action => :index
return
end
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