Merge 95a0986c02 into 137d997793
This commit is contained in:
commit
6d2fb01a7b
1 changed files with 7 additions and 2 deletions
|
|
@ -213,6 +213,11 @@ Osem::Application.routes.draw do
|
||||||
end
|
end
|
||||||
|
|
||||||
get '/admin' => redirect('/admin/conferences')
|
get '/admin' => redirect('/admin/conferences')
|
||||||
|
if Conference.all.count == 1 && Conference.first.splashpage
|
||||||
root to: 'conferences#index', via: [:get, :options]
|
conference_title=Conference.first.short_title
|
||||||
|
root to: 'conferences#show',id: conference_title
|
||||||
|
else
|
||||||
|
root to: 'conferences#index', via: [:get, :options]
|
||||||
|
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue