FIX: stop removing query params from destination url in sso

This commit is contained in:
Sam 2016-08-16 15:10:07 +10:00
parent 11356fb9f4
commit 0b334cdf74

View file

@ -14,7 +14,8 @@ class SessionController < ApplicationController
return_path = if params[:return_path] return_path = if params[:return_path]
params[:return_path] params[:return_path]
elsif session[:destination_url] elsif session[:destination_url]
URI::parse(session[:destination_url]).path uri = URI::parse(session[:destination_url])
"#{uri.path}#{uri.query ? "?" << uri.query : ""}"
else else
path('/') path('/')
end end