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.
When I select the option "Delete submissions immediately", and I have my Redirection location set to "Confirmation page" with a confirmation message set up, after submitting the form I am redirected to a page with a URL similar to: mywebsite.com/node/1/done?sid=10. However instead of seeing my confirmation message I am shown the following error:
"Access denied"
You are not authorized to access this page.
Is it not possible to redirect to the default "Confirmation page" when using this module? I did not see that documented anywhere...
Comments
Comment #1
ladybug_3777 CreditAttribution: ladybug_3777 commentedI should add I am using Webform 7.x-4.0-beta3 (also just tried version rc3)
Comment #2
ladybug_3777 CreditAttribution: ladybug_3777 commentedIt looks like the denied access is coming from the webform.module function for webform_confirmation_page_access($node);
The issue here is that the variable $submission is empty since the submission has been deleted, which ends up returning FALSE for the access.
Not sure the best way to address this, seems like there should be something in place that will allow the page to show the confirmation message even if the submission has been deleted.
Comment #3
ladybug_3777 CreditAttribution: ladybug_3777 commentedPlease see this page for a patch that attempts to address this issue:
https://drupal.org/node/2275943
Comment #4
Robert Castelo CreditAttribution: Robert Castelo commentedladybug_3777 so looks like your Webform patch got committed (well done!).
I'm closing this issue as I assume the latest version of Webform fixes the problem.
Comment #5
ladybug_3777 CreditAttribution: ladybug_3777 commentedYes, it did. Thanks Robert!!