From ff9d7a9bfbee42aed6fb28a86c21ac8dddcb4c48 Mon Sep 17 00:00:00 2001 From: Vinoth Kannan Date: Tue, 27 Mar 2018 17:22:07 +0530 Subject: [PATCH] FIX: authComplete query param should carry-forward to login page --- app/controllers/application_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index f2a7b475012..89719d67d73 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -641,6 +641,8 @@ class ApplicationController < ActionController::Base # save original URL in a session so we can redirect after login session[:destination_url] = destination_url redirect_to path('/session/sso') + elsif params[:authComplete].present? + redirect_to path("/login?authComplete=true") else # save original URL in a cookie (javascript redirects after login in this case) cookies[:destination_url] = destination_url