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.
If user uses /user for logged in user, it gives me too-many-redirection error due to the destination paramater in query string. So give other modules ability to alter/modify the $options array.
Comment | File | Size | Author |
---|---|---|---|
#7 | 2883264-7.patch | 2.89 KB | piyuesh23 |
#4 | 2883264-4.patch | 2.9 KB | joshi.rohit100 |
Comments
Comment #2
joshi.rohit100Comment #3
joshi.rohit100Comment #4
joshi.rohit100Patch for just allowing altering the $options array. We can add documentation separately.
Comment #5
nedjoThanks for noting this issue. However, the patch doesn't address the error the issue describes. There may be a case to be made to allow altering the $options array, but if this is indeed a major bug it should be fixed here.
Could you please provide steps to reproduce the issue? Thanks.
Comment #6
Nixou CreditAttribution: Nixou at Actency commented@joshi.rohit100, as @nedjo just said above, we can't reproduce your problem actually.
Can you provide steps to reproduce please ?
Comment #7
piyuesh23 CreditAttribution: piyuesh23 at QED42 commentedSteps to reproduce this one:
- Create a redirect so that 403 pages are redirected to login page for authenticated user
- Try to login to the site with a destination parameter set to a 403 page.
Re-rolled the patch above to work with latest dev version. The patch above just adds an alter & we are getting rid of the query param inside the alter hook while redirecting.
Comment #8
Nixou CreditAttribution: Nixou at Actency commentedComment #9
Nixou CreditAttribution: Nixou at Actency commentedOk I understand you want to override the $options array here by using a new hook.
This has already be done in https://www.drupal.org/project/r4032login/issues/2700797 using an Event Subscriber (better way than using procedural hook).
See more details in https://www.drupal.org/project/r4032login/issues/2700797#comment-12635207.