Closed (fixed)
Project:
Twitter
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
19 Jan 2012 at 09:28 UTC
Updated:
16 Apr 2012 at 22:21 UTC
Jump to comment: Most recent file
Here is the patch which should fix the ugly hack in the drupal_goto on oauth_callback url submit handler.
D7 doesn't use $form['#programmed'] instead it uses $form_state['programmed'] and if its set to true it suppresses redirection.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | twitter_oauth_drupal_goto_hack_fix.patch | 1.49 KB | chia |
| twitter_oauth_drupal_goto_hack_fix.patch | 1.42 KB | chia |
Comments
Comment #1
chia commentedHere's an updated patch to redirect user to the page from where he clicked signin with twitter. Its not useful to always redirect user to edit twitter account page.
Comment #2
justindodge commentedI applied the patch at #1 to 7.x-3.x-dev cleanly and it worked like a charm.
May be worth mentioning that there is a similar issue for D6 where a concern was noted over what happens if you login from user/login and are redirected back there: #671212: Redirect after login
I tested this use case and I was ultimately redirected to /user, so everything works as expected. I believe this is just the way D7 handles the login page now, so that makes it easy.
Thanks!
Comment #3
justindodge commentedI do believe this title is a little more appropriate now, and it is preserved in the description that the previous implementation was a little hacky.
Comment #4
juampynr commentedCommitted. Thanks.
http://drupalcode.org/project/twitter.git/commitdiff/f01a383