Skip to content

Commit

Permalink
Merge pull request #476 from devilankur18/omniauth-redirection
Browse files Browse the repository at this point in the history
Fixes Issue #362: Fixes for the omniauth redirection issue for namesp…
  • Loading branch information
booleanbetrayal committed Dec 30, 2015
2 parents 03fb371 + 974e722 commit 996b9cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def redirect_callbacks

# derive target redirect route from 'resource_class' param, which was set
# before authentication.
devise_mapping = request.env['omniauth.params']['resource_class'].underscore.to_sym
devise_mapping = request.env['omniauth.params']['resource_class'].underscore.gsub("/", "_").to_sym
redirect_route = "#{request.protocol}#{request.host_with_port}/#{Devise.mappings[devise_mapping].fullpath}/#{params[:provider]}/callback"

# preserve omniauth info for success route. ignore 'extra' in twitter
Expand Down

0 comments on commit 996b9cf

Please sign in to comment.