- Issue created by @zenimagine
- 🇮🇳India prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
i Have tried this but i cant reproduce the issue for me its working
For the drupal 11 and i have installedcomposer require 'drupal/login_destination:2.x-dev@dev'
this version of module.
i have attached image for the configuration of the redirect for register user.
also for the register user settings.Please share the step to reproduce
- 🇫🇷France zenimagine
I am on version 8.x-2.0-beta8 which is more recent than the dev version
- 🇮🇳India sayan_k_dutta
The issue arises when the new account created needs to be validated through email or by admin. Seems like the redirection checking is bypassed if the user is not logged in. I am using version 2.x-dev@dev on drupal 10.3.10.
- 🇮🇳India prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
@sayan_k_dutta If user validation is required through email or admin approval, direct user redirection is not feasible. This is because the process involves sending a one-time login link, which is used for the first login to set the password. In this scenario, redirection cannot be implemented directly.
- 🇮🇳India prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
@zenimagine 8.x-2.0-beta8 in this version result is same.
- 🇮🇳India sayan_k_dutta
Some specific case arise:
- User registers for a new account but is pending approval from admin.
- User registers for a new account but has not yet validated their email.
- User registers for a new account but both admin approval and email validation is pending.
In these cases the user is still not logged in. So just after creating the account, will they be redirected to the set page?
Need others' thoughts. - 🇮🇳India sayan_k_dutta
@prem suthar, thanks for the follow up, then I think the module works as designed.
- 🇫🇷France zenimagine
This is not the expected behavior. When the user registers (with admin approval), he is immediately redirected to the homepage of the website with an alert, indicating that instructions have been sent to him by email.
I don't want to show him the homepage, but /node/38
Can the module display something other than the homepage?
- 🇮🇳India sayan_k_dutta
We then have to modify the .module file to make the necessary changes. I am looking into it.
- Merge request !24Issue #3497615: Redirection to specific page after registration. → (Open) created by sayan_k_dutta
- 🇮🇳India sayan_k_dutta
@zenimagine, I have created MR !24 with the changes. Please check if it works.
- 🇫🇷France zenimagine
Great, I just tested it and it works. I only tested with accounts that need administrator approval.
- 🇮🇳India lavanyatalwar
I just checked the functionality, and it looks good to me.
I am attaching screen recordings of the before and after states of applying the MR.
Moving it to RTBC.