fix root redirect when using suburi

This commit is contained in:
wvengen 2014-01-15 15:26:33 +01:00
parent b2f032ac8e
commit ecb2f2a015
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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