diff --git a/config/routes.rb b/config/routes.rb index 8aa76b29..61a911b8 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -25,6 +25,7 @@ Rails.application.routes.draw do # Manage former php pages get 'showevent.php', to: redirect { |params, request| "events/#{request.params[:id]}" } + get 'listevents.php', to: redirect { |params, request| "events?#{request.query_string}" } # A mechanism to list "all" events get '(:format)listevents.php', to: redirect { |params, request| "events.#{request.format.to_sym}?#{request.query_string}" } # Respond to rss and ical calls