Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Usung 8.x-1.x-dev version.
I have done a redirection on login so the user go to front page for all cases but the One-time login link. In that case the user land on the /user/edit page.
The problem I want to solve is the following:
When a user that have landed on this page from the One-time login link and save the form, the user shall be redirected to the front page. Other events on save this page shall not be redirected.
Can this module solve this problem? If so, how do I make this happen?
Comments
Comment #2
NikLP CreditAttribution: NikLP as a volunteer commentedThis module won't solve that problem. Your use case requires that the previous page be remembered and then in the case that the previous link was a one-time, redirect. That's a pretty edge case and not easy to code, but it isn't within the remit of this module AFAICT.
Comment #3
ddrozdik CreditAttribution: ddrozdik as a volunteer and at Five Jars commentedHi @chrotto,
I agree with @NikLP, this is not easy to code since this is not a usual use case.
I'm closing this issue.
Comment #4
ceccoo CreditAttribution: ceccoo commented[solved]
EDIT: Sorry! I didn’t noticed, that the module "Password Reset Landing Page (PRLP)" was set to "/user/%user/edit"! So it did exactly what should not happen...
But with the setting "/user/reset/*" in the module "Password Reset Landing Page (PRLP)" any destination can be chosen.
Hope this is helpful for other, which come to this threat by search engine, like me.
Thanks.
********** old posting **********
Hello,
I like to ask two question:
Lot of people get very irritated, when after they did a password reset, the next page is their profile page with the "edit" tab. And the first what jumps in the eyes of the user, is a form asking after their "actual password".
or /user/reset/*
Example: The user is at /user/reset/userID/ and has to put in a new password two times.
How after submit the user can be redirected not to /user/userID/edit but to other node?
I used:
Redirect upon triggers: One-time login link
Redirect from specific pages: Only the listed pages "/user/reset/*" (without quotes)
Redirect users with roles: test-role
But it seems not to working.
Thank you.
Drupal 9.5.11