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.
The current implementation gets the ReturnTo parameter from POST (or PUT). It's easier to be able to give it in a GET parameter in the URL, especially when redirecting an anonymous user. I think it was possible in Drupal 7. Here's a patch for this.
Comment | File | Size | Author |
---|---|---|---|
simplesamlphp_auth-fix_return_to_as_get_parameter.patch | 866 bytes | GaëlG | |
|
Comments
Comment #2
George Bills CreditAttribution: George Bills commentedIn case it's useful - this patch applies cleanly my end, and I've verified that passing ReturnTo in the URL works afterwards.
Comment #3
GaëlGThank you George for the review.
Comment #4
dakku CreditAttribution: dakku as a volunteer commentedThank you guys, this could be a really useful feature.
One question:
Does the POST / PUT functionality still work after this patch?
Comment #5
George Bills CreditAttribution: George Bills commented@dakku - it should but I haven't tested it sorry.
The Symfony doco - https://api.symfony.com/2.7/Symfony/Component/HttpFoundation/Request.html - says:
So "$request" (old) is explicitly POSTed vars only, "get()" (new)" will pull vars from GET, PATH then POST in that order.
Comment #7
dakku CreditAttribution: dakku as a volunteer commentedThank you for the patch. I revised the patch and tested locally!
Comment #8
dakku CreditAttribution: dakku as a volunteer commented