lib/clearance/authorization.rb in clearance-1.16.0 vs lib/clearance/authorization.rb in clearance-1.16.1
- old
+ new
@@ -93,10 +93,10 @@
# @api private
def return_to
if return_to_url
uri = URI.parse(return_to_url)
- "#{uri.path}?#{uri.query}".chomp('?')
+ "#{uri.path}?#{uri.query}".chomp("?") + "##{uri.fragment}".chomp("#")
end
end
# @api private
def return_to_url