From 0b334cdf74e773f34d2cf7439d5118d248c342e3 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 16 Aug 2016 15:10:07 +1000 Subject: [PATCH] FIX: stop removing query params from destination url in sso --- app/controllers/session_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/session_controller.rb b/app/controllers/session_controller.rb index b14cdf979..e0344c3cc 100644 --- a/app/controllers/session_controller.rb +++ b/app/controllers/session_controller.rb @@ -14,7 +14,8 @@ class SessionController < ApplicationController return_path = if params[:return_path] params[:return_path] elsif session[:destination_url] - URI::parse(session[:destination_url]).path + uri = URI::parse(session[:destination_url]) + "#{uri.path}#{uri.query ? "?" << uri.query : ""}" else path('/') end