From 693c0c0fb263e000adf7a926b5844666e2252905 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Wed, 5 Nov 2025 19:00:50 +0100 Subject: [PATCH] Redirect to root to avoid changing the path by default --- app/controllers/landings_controller.rb | 2 +- test/controllers/landings_controller_test.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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