Added when only one conference root path goes to show page
This commit is contained in:
parent
885ebc4186
commit
88f33728db
1 changed files with 7 additions and 2 deletions
|
|
@ -208,6 +208,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue