This commit is contained in:
alator21 2018-03-09 02:36:53 +00:00 committed by GitHub
commit 6d2fb01a7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -213,6 +213,11 @@ Osem::Application.routes.draw do
end
get '/admin' => redirect('/admin/conferences')
root to: 'conferences#index', via: [:get, :options]
if Conference.all.count == 1 && Conference.first.splashpage
conference_title=Conference.first.short_title
root to: 'conferences#show',id: conference_title
else
root to: 'conferences#index', via: [:get, :options]
end
end