This commit is contained in:
albert
2013-03-22 08:40:00 -07:00
parent 9cdc2a7cd7
commit 4807d9a233

View File

@@ -282,8 +282,8 @@ Danbooru::Application.routes.draw do
match "/tag/index.xml", :controller => "legacy", :action => "tags", :format => "xml"
match "/tag/index.json", :controller => "legacy", :action => "tags", :format => "json"
match "/tag" => redirect {|params, req| "/tags?page=#{req.params[:page]}"}
match "/tag/index" => redirect {|params, req| "/tags?page=#{req.params[:page]}"}
match "/tag" => redirect {|params, req| "/tags?page=#{req.params[:page]}&search[name_matches]=#{CGI::escape(req.params[:name])}&search[order]=#{req.params[:order]}"}
match "/tag/index" => redirect {|params, req| "/tags?page=#{req.params[:page]}&search[name_matches]=#{CGI::escape(req.params[:name])}&search[order]=#{req.params[:order]}"}
match "/tag_implication" => redirect {|params, req| "/tag_implications?search[name_matches]=#{CGI::escape(req.params[:query])}"}