Skip to content

Commit

Permalink
ensure that redirect url always has anchor. resolves lynndylanhurley/…
Browse files Browse the repository at this point in the history
  • Loading branch information
lynndylanhurley committed Sep 10, 2014
1 parent 7f1116e commit 41309ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/devise_token_auth/concerns/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ def generate_url(url, params = {})

res = "#{uri.scheme}://#{uri.host}"
res += ":#{uri.port}" if (uri.port and uri.port != 80 and uri.port != 443)
res += "#{uri.path}" if uri.path
res += "##{uri.fragment}" if uri.fragment
res += "#{uri.path}#" if uri.path
res += "#{uri.fragment}" if uri.fragment
res += "?#{params.to_query}"

return res
Expand Down

0 comments on commit 41309ca

Please sign in to comment.