fix root redirect when using suburi
This commit is contained in:
parent
b2f032ac8e
commit
ecb2f2a015
2 changed files with 6 additions and 1 deletions
|
@ -62,4 +62,9 @@ class HomeController < ApplicationController
|
|||
redirect_to my_profile_path
|
||||
end
|
||||
|
||||
# redirect to root, going to default foodcoop when none given
|
||||
def redirect_to_foodcoop
|
||||
redirect_to root_path
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -6,7 +6,7 @@ Foodsoft::Application.routes.draw do
|
|||
|
||||
get "sessions/new"
|
||||
|
||||
root :to => redirect("/#{FoodsoftConfig.scope}")
|
||||
root :to => 'home#redirect_to_foodcoop'
|
||||
|
||||
|
||||
scope '/:foodcoop' do
|
||||
|
|
Loading…
Reference in a new issue