@@ -49,7 +49,7 @@ def social_buttons(request):
4949def facebook_button (request ):
5050 provider = providers .registry .by_id ('facebook' , request )
5151 query = {
52- 'next' : ' /conversations/' ,
52+ 'next' : request . GET . get ( 'next' , ' /conversations/') ,
5353 'method' : 'oauth2' ,
5454 }
5555 url = provider .get_login_url (request , ** query )
@@ -61,7 +61,7 @@ def facebook_button(request):
6161def twitter_button (request ):
6262 provider = providers .registry .by_id ('twitter' , request )
6363 query = {
64- 'next' : ' /conversations/' ,
64+ 'next' : request . GET . get ( 'next' , ' /conversations/') ,
6565 }
6666 url = provider .get_login_url (request , ** query )
6767 return fa_icon ('twitter' , href = url , id = 'twitter-button' , aria_label = "Twitter Icon" ,
@@ -72,7 +72,7 @@ def twitter_button(request):
7272def github_button (request ):
7373 provider = providers .registry .by_id ('github' , request )
7474 query = {
75- 'next' : ' /conversations/' ,
75+ 'next' : request . GET . get ( 'next' , ' /conversations/') ,
7676 }
7777 url = provider .get_login_url (request , ** query )
7878 return fa_icon ('github' , href = url , id = 'github-button' )
@@ -82,7 +82,7 @@ def github_button(request):
8282def google_button (request ):
8383 provider = providers .registry .by_id ('google' , request )
8484 query = {
85- 'next' : ' /conversations/' ,
85+ 'next' : request . GET . get ( 'next' , ' /conversations/') ,
8686 }
8787 url = provider .get_login_url (request , ** query )
8888 return fa_icon ('google' , href = url , id = 'google-button' , aria_label = "Google Icon" ,
0 commit comments