Redirect demandes to DEMANDE_INSCRIPTION_ADMIN_PAGE_URL
This commit is contained in:
parent
eeb1aa1f78
commit
a49c962ab3
2 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,7 @@ module NewAdministrateur
|
||||||
# Find the admin
|
# Find the admin
|
||||||
administrateur = Administrateur.by_email(email)
|
administrateur = Administrateur.by_email(email)
|
||||||
if administrateur.nil?
|
if administrateur.nil?
|
||||||
flash.alert = "L’administrateur « #{email} » n’existe pas. Invitez-le à demander un compte administrateur à l’addresse <a href=#{new_demande_url}>#{new_demande_url}</a>."
|
flash.alert = "L’administrateur « #{email} » n’existe pas. Invitez-le à demander un compte administrateur à l’addresse <a href=#{DEMANDE_INSCRIPTION_ADMIN_PAGE_URL}>#{DEMANDE_INSCRIPTION_ADMIN_PAGE_URL}</a>."
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -423,6 +423,7 @@ Rails.application.routes.draw do
|
||||||
#
|
#
|
||||||
# Legacy routes
|
# Legacy routes
|
||||||
#
|
#
|
||||||
|
get 'demandes/new' => redirect(DEMANDE_INSCRIPTION_ADMIN_PAGE_URL)
|
||||||
|
|
||||||
get 'backoffice' => redirect('/procedures')
|
get 'backoffice' => redirect('/procedures')
|
||||||
get 'backoffice/sign_in' => redirect('/users/sign_in')
|
get 'backoffice/sign_in' => redirect('/users/sign_in')
|
||||||
|
|
Loading…
Reference in a new issue