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.
Follow-up to #2885507: Email sent via handler can't include link to private file for submissions by anonymous user
Problem/Motivation
Due to DRUPAL-PSA-2016-003 all file uploads are protected and require users to be authenticated.
When the URL for an uploaded file is included in a email, the link will return an access denied page for anonymous users. This is is very confusing for users.
Proposed resolution
When an anonymous user attempts to access a private webform file, we should redirect them to the login page with the private file as ?destination.
The login page can include a message that says 'Please login in to view this file.'
Comment | File | Size | Author |
---|---|---|---|
#3 | redirect_users_to_login-2888076-2.patch | 20.55 KB | jrockowitz |
|
Comments
Comment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented