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

chrotto created an issue. See original summary.

NikLP’s picture

This 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.

ddrozdik’s picture

Status: Active » Closed (won't fix)

Hi @chrotto,

I agree with @NikLP, this is not easy to code since this is not a usual use case.
I'm closing this issue.

ceccoo’s picture

[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:

  1. why "redirect after password reset" is not usual use case? As user ddrozdik said.
    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".
  2. Why a redirect from one-time link like: "/user/reset/userID/kljsdkljf897987987987-RANDOM-NUMBER" is pretty edge case as NikLP said?"
  3. is there no solution like: /user/reset/userID/*
    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