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.
Hello,
this issue actually starts here: #782864: redirect after submit sends user to wrong URL.
When setting a webform to "Generate a block", the redirect URL after submit gets modified and corrupted. Instead of redirecting to http://www.example.com/drupal_root/content/thanks, it redirects to http://www.example.com/drupal_root//drupal_root/webform.
This happens even when I submit my webform displaying it as a full node, and also as a block.
Anyone else is having this same issue?
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#2 | webformblock_redirect.patch | 470 bytes | yhager |
Comments
Comment #1
ermannob CreditAttribution: ermannob commentedI'm sorry, but I couldn't fix this issue and to get my work done, I switched to Nodes In Block module: http://drupal.org/project/nodesinblock
Comment #2
yhager CreditAttribution: yhager commentedIt seems that setting the '#redirect' property overrides all else when performing the redirection. Patch attached.
Comment #3
loophole080 CreditAttribution: loophole080 commentedwork around: http://drupal.org/node/782864#comment-2932146
Comment #4
keva CreditAttribution: keva commentedI didn't apply this patch directly, but edited webformblock.module to the same effect. (deleted line 57)
Appears to work.
Comment #5
askibinski CreditAttribution: askibinski commentedPatch works fine.