diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index b965fad6..9b39d4f9 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -31,7 +31,7 @@ def current_dsi_user def authenticate_dsi_user! if current_dsi_user.blank? flash[:warning] = "You need to sign in to continue." - redirect_to sign_in_path + redirect_to "/auth/dfe" end end diff --git a/app/controllers/start_controller.rb b/app/controllers/start_controller.rb new file mode 100644 index 00000000..a6ee0733 --- /dev/null +++ b/app/controllers/start_controller.rb @@ -0,0 +1,5 @@ +class StartController < ApplicationController + def start + redirect_to search_path + end +end diff --git a/config/routes.rb b/config/routes.rb index c3284bfa..914a8c25 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,8 @@ Rails.application.routes.draw do root to: "searches#new" + get "/start", to: "start#start" + get "/search", to: "searches#new" get "/result", to: "searches#show"