diff --git a/app/controllers/landings_controller.rb b/app/controllers/landings_controller.rb index f7f7558c4..b3b4c9162 100644 --- a/app/controllers/landings_controller.rb +++ b/app/controllers/landings_controller.rb @@ -3,7 +3,7 @@ class LandingsController < ApplicationController if Current.user.boards.one? redirect_to board_path(Current.user.boards.first) else - redirect_to events_path + redirect_to root_path end end end diff --git a/test/controllers/landings_controller_test.rb b/test/controllers/landings_controller_test.rb index 7495bd57d..ab636b2b9 100644 --- a/test/controllers/landings_controller_test.rb +++ b/test/controllers/landings_controller_test.rb @@ -7,13 +7,13 @@ class LandingsControllerTest < ActionDispatch::IntegrationTest test "redirects to the timeline when many boards" do get landing_path - assert_redirected_to events_path + assert_redirected_to root_path end test "redirects to the timeline when no boards" do Board.destroy_all get landing_path - assert_redirected_to events_path + assert_redirected_to root_path end test "redirects to boards when only one board" do