Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Here is another small extension for the redirect mimic of this module. It should follow Drupal's default behavior by accepting the destination url parameter after login. The attached patch is implementing this.
Comments
Comment #1
SpleshkaWhat about other form? User register and password recovery form also needs in feature. Could you please provide a patch for a three forms?
Comment #2
jurgenhaasOK, here comes another patch that works for both the login and the register form. However, the password reset form doesn't do any redirect (yet), so it doesn't have to deal with any url parameters either.
Comment #3
jagermonster CreditAttribution: jagermonster commentedIs this going to find its way into the module as i think this is really good to have?
Perhaps making this a configurable option for this module so it can be enabled/disabled?
Comment #4
jurgenhaasLooks like the above patch doesn't apply anymore and I have rewrtten the whole thing to the changed structure of this module. Please review the attached patch and let me know if this works for you.
Comment #5
SpleshkaHi,
Your patch is won't works because when form was submitted her
#action
is/ajax_register/[type]/nojs
. So "destination" param is not appends to the url.Comment #6
Altynay CreditAttribution: Altynay commentedHello, my English is not super, but I'll try to explain my problem.
I use three modules Ajax login-register, Captcha, Image captcha Refresh. I set 8 symbols for captcha. When I enter 8 right symbols - everything is ok.
But if at first time I enter wrong symbols for captcha, then after refreshing captcha image and entering right symbols for captcha, it's redirecting to page /ajax_register/register/ajax with text:
"[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"touch","theme_token":"MAUJHfaHX0vBlP29g5HcPYAGghuaWRQnu35nJM1v9Mc"}},"merge":true},{"command":"redirect","url":"\/registration-complete\/125","delay":0}]".
Please, help!
Comment #7
Spleshka@Altynay,
Just tried Ajax login register + Captcha + Image captcha refresh - everything works properly! So bug not in my module.
Comment #8
i.bajrai CreditAttribution: i.bajrai commentedPatch #4 does not work because the user_login_form_submit function always sets the form redirect.
Comment #9
heyyo CreditAttribution: heyyo commentedPatch in #8 works great for me.
Comment #10
SokoL_BY CreditAttribution: SokoL_BY commentedI have the same problem like @Altynay
I use Ajax Login/Register + uLogin, after user login via social network (uLogin) it's redirecting to: ajax_register/login/ajax and on white screen i see JSON code. what's wrong? I installed all path from current topic.
p.s. Sorry for my English.
-------------
Fixed https://www.drupal.org/node/2287799