devise_oauth2_canvas_facebook 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -74,8 +74,16 @@ class Devise::FacebookConsumerController < ApplicationController
74
74
 
75
75
  if Devise.facebook_canvas_app
76
76
  sign_in(resource_name, resource)
77
- if params[:go_back] && params[:abs_url] == "1"
78
- redirect_to params[:go_back]
77
+ if params[:go_back] && !!params[:abs_url] && params[:abs_url] != "0"
78
+ if params[:abs_url] == "1"
79
+ redirect_to params[:go_back]
80
+ else
81
+ if !!params[:go_back].match(/\?/)
82
+ redirect_to params[:go_back] + "&abs_url=params[:abs_url]"
83
+ else
84
+ redirect_to params[:go_back] + "?abs_url=params[:abs_url]"
85
+ end
86
+ end
79
87
  elsif params[:go_back]
80
88
  redirect_to Devise.facebook_canvas_url + params[:go_back]
81
89
  else
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_oauth2_canvas_facebook
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nina Jansen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-03 00:00:00 +01:00
18
+ date: 2010-11-04 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency