From 194d94a1aab09f816d197e1f0117285f7cf9daf8 Mon Sep 17 00:00:00 2001 From: albert Date: Fri, 22 Mar 2013 08:40:44 -0700 Subject: [PATCH] fixes #1032 --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index c24dad4e3..6aa8b5981 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -217,7 +217,7 @@ Danbooru::Application.routes.draw do resources :fposts, :controller => "forum_posts" # legacy aliases - match "/artist" => redirect {|params, req| "/artists?page=#{req.params[:page]}"} + match "/artist" => redirect {|params, req| "/artists?page=#{req.params[:page]}&search[name]=#{CGI::escape(req.params[:name])}"} match "/artist/index.xml", :controller => "legacy", :action => "artists", :format => "xml" match "/artist/index.json", :controller => "legacy", :action => "artists", :format => "json" match "/artist/index" => redirect {|params, req| "/artists?page=#{req.params[:page]}"}