X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/765165777e2741104f7e58605b2873ed6c94a604..e16f1b2fe640e6f5fbf8e32ac7ddc6f909ab55d3:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index d7fc4627c..d1e4c74ae 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -236,8 +236,8 @@ OpenStreetMap::Application.routes.draw do get "/user/:display_name/diary/rss" => "diary_entries#rss", :defaults => { :format => :rss } get "/diary/:language/rss" => "diary_entries#rss", :defaults => { :format => :rss } get "/diary/rss" => "diary_entries#rss", :defaults => { :format => :rss } - get "/user/:display_name/diary/comments/:page" => "diary_entries#comments", :page => /[1-9][0-9]*/ - get "/user/:display_name/diary/comments/" => "diary_entries#comments", :as => :diary_comments + get "/user/:display_name/diary/comments/:page", :page => /[1-9][0-9]*/, :to => redirect(:path => "/user/%{display_name}/diary/comments") + get "/user/:display_name/diary/comments" => "diary_entries#comments", :as => :diary_comments get "/user/:display_name/diary" => "diary_entries#index" get "/diary/:language" => "diary_entries#index" scope "/user/:display_name" do