mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: stop removing query params from destination url in sso
This commit is contained in:
parent
11356fb9f4
commit
0b334cdf74
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue