From 84d619c974642450d047e5a73a070a1d863a4098 Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Fri, 26 Jun 2020 11:21:13 +0200 Subject: [PATCH] redirect old urls in avis mails with new urls --- config/routes.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index 75f669a41..30dcd5f6c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -301,6 +301,8 @@ Rails.application.routes.draw do scope module: 'instructeurs', as: 'instructeur' do get 'avis', to: 'avis#all', as: 'all_avis' + get 'avis/:id', to: redirect('/procedures/old/avis/%{id}') + get 'avis/:id/sign_up/email/:email', to: redirect("/procedures/old/avis/%{id}/sign_up/email/%{email}"), constraints: { email: /.*/ } resources :procedures, only: [:index, :show], param: :procedure_id do member do resources :groupes, only: [:index, :show], controller: 'groupe_instructeurs' do