mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 17:12:45 +08:00
FIX: stop removing query params from destination url in sso
This commit is contained in:
parent
11356fb9f4
commit
0b334cdf74
|
@ -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 New Issue
Block a user