From 423c1991dbb74fc93f8c8bae9297d45326b39e2d Mon Sep 17 00:00:00 2001 From: ghostrigger Date: Fri, 5 Jul 2013 14:36:13 +0800 Subject: [PATCH] legacy support for /note/history from http://danbooru.donmai.us/note/history?user_id=32729 to http://danbooru.donmai.us/note_versions?search[updater_id]=32729 --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 1bc2ab7b8..b831401b1 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -289,7 +289,7 @@ Danbooru::Application.routes.draw do match "/note" => redirect {|params, req| "/notes?page=#{req.params[:page]}"} match "/note/index" => redirect {|params, req| "/notes?page=#{req.params[:page]}"} - match "/note/history" => redirect("/note_versions") + match "/note/history" => redirect {|params, req| "/note_versions?search[updater_id]=#{req.params[:user_id]}"} match "/pool" => redirect {|params, req| "/pools?page=#{req.params[:page]}"} match "/pool/index" => redirect {|params, req| "/pools?page=#{req.params[:page]}"}