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.
Logintoboggan currently has a feature to specify the redirect to be used once the user has verified email and been taken to the account edit page.
Sometimes the account edit page is not the best landing page though - there may be info that it's important to try and collect on other profile pages, and we may not really care too much if they change their password or not, or any of the other options.
So it would be great to have a way to specify the landing page after the email validate link has been clicked.
If there's interest in this idea I'd be happy to code it.
Comments
Comment #1
hunmonk CreditAttribution: hunmonk commentedi'm confused -- isn't this what "Redirect path on Confirmation" does already??
Comment #2
Robert Castelo CreditAttribution: Robert Castelo commentedI thought so too, but the behaviour I get is that it goes to the account edit page and sets the redirect for the next page after that.
Comment #3
Robert Castelo CreditAttribution: Robert Castelo commentedIf that's what "Redirect path on Confirmation" is supposed to do I'll test further to see what's happening.
Comment #4
2c CreditAttribution: 2c commentedSubscribe. I'm getting this too. The user clicks on the one time validation link and they are taken to the page to edit their password. Then, when they click the submit button to change their password they are taken to the $destination.
Comment #5
hunmonk CreditAttribution: hunmonk commentedi believe you're running into this case:
we *may* be able to clobber this code, as i believe the support for query strings in the confirmation setting is supported now, so this could be done by choice with a 'user/%uid/edit?destination=page' approach.
i'd hate to tear that out in a stable branch, though -- i do have a 6.x-2.x branch possibility...
Comment #6
hunmonk CreditAttribution: hunmonk commentedwon't do this until another stable branch.
Comment #7
hunmonk CreditAttribution: hunmonk commentedthis 'feature' has been causing problems over at #346713: Redirect path on Confirmation is broken and #372884: Validation email links always result in Access Denied message, so i've decided to go ahead and remove it in the 6.x-1.x branch -- see attached patch. i won't mess with this in 5.x, so an upgrade will be necessary to benefit from this enhancement.