- Issue created by @Nelo_Drup
- Assigned to shailja179
- Status changed to Needs review
over 1 year ago 11:42am 18 April 2023 - 🇮🇳India shailja179 India
This is the code for redirection of email link.
user_email_verification/src/Controller/UserEmailVerificationVerify.php// The user is already authenticated, redirect to the user profile. elseif ($this->currentUser()->isAuthenticated()) { return $this->redirect('entity.user.canonical', ['user' => $this->currentUser()->id()]); }
If you have enabled extended verification period, then below code is responsible.
user_email_verification/src/Controller/UserEmailVerificationVerifyExtended.phpif ($this->currentUser()->isAuthenticated()) { return $this->redirect('entity.user.canonical', ['user' => $this->currentUser()->id()]); }
You can add patch to these files to override the url using below code.
new RedirectResponse('/myaccount/'))->send();
Thanks, I was able to do it, but just as a suggestion, I hope that in the future a field can be created where that can be customized, especially for new users who don't know how to code much.
- 🇮🇳India shailja179 India
Yes, that can be done using setting form. You want that or it will work for now?
#4 If it could be done from a form it would be great normal and just filling the path would be great