Rajout d'une règle pour gérer les anciens appels à event.php

This commit is contained in:
echarp 2014-08-25 18:09:31 +02:00
parent cce660843d
commit af517540c3
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@ Rails.application.routes.draw do
get '(:format)listevents.php',
to: redirect { |_, r| "events.#{r.format.to_sym}?#{r.query_string}" }
# Respond to rss and ical calls
get 'event.php',
to: redirect { |_, r| "events?#{r.query_string}" }
get '(:format)event.php',
to: redirect { |_, r| "events.#{r.format.to_sym}?#{r.query_string}" }
# Respond to rss and ical calls