Closed (fixed)
Project:
Webform
Version:
6.x-3.0-beta5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2010 at 09:47 UTC
Updated:
5 Nov 2010 at 14:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
quicksketchI can't quite reproduce the problem you're describing, but I did find a similar issue where entering a full URL as the redirect URL may result in the confirmation message not being shown. Could you try out this patch and see if it helps your problem also? As an alternative, you may just enter your URL as "content/thanks" instead of "http://www.example.com/drupal_root/content/thanks".
Comment #2
quicksketchThat last patch included some debugging code, here's a patch with only the necessary changes.
Comment #3
ermannob commentedHi,
thanks for your reply.
With your patch I see that $form_state['redirect'] is different. It's like: array("content/thanks", "sid=1614", null).
Unfortunatly the problem persists. I get redirected to the same URL as my first post.
Using an internal URL as redirection (I used "content/thanks"), I got the same result.
It seems that after running webform_client_form_submit() some other code modifies the redirection url. Can you give me some advice where to look?
Thanks.
Comment #4
ermannob commentedI just found what the problem is: webform_block 6.x-1.x-dev (2010-Mar-02).
When I set my webform to "Generate a block", the URL error comes up.
Please note that I tried both ways to display my webform: as a block and as a node. The result was the same... wrong URL for redirection.
It's so strange... I'm going to report this to webform_block devs.
Thanks.
Comment #5
quicksketchThanks ermannob. As noted on the project page, Webform Block has not yet been updated to work with Webform 3 and I wouldn't recommend using it until they announce complete compatibility. I went ahead and applied the patch from #2, since it's a bug regardless, even if it didn't fix the issue at hand.
Comment #6
bcobin commentedWorkaround is to create a view and add a block view. Working OK for me.
Comment #7
ermannob commentedThat's interesting, bcobin. I used another workaround: Nodes In Block http://drupal.org/project/nodesinblock .
It seems that with Drupal we can find several ways to solve problems... :-)
Comment #8
loophole080 commentedconfirmed #6
-> disabled webform_block
-> using webform 3.0 dev
-> create node view
-> block display
-> field: node - webform form body
-> filter: node type - webform
redirect path in webform conf now works as expected
Comment #9
ganges commentedFIXED third party module dependencies
Sirs
After submission in browser instead of redirect page/or message i see this
Array
(
[0] => Submitted on 05/07/2010 - 10:09
Submitted by user: ssclientsiteadmin [109.104.170.41]
Submitted values are:
Name: ds
Company: sd
Job Title: sd
Phone: 44444
Email:
Your question: ervreverv
The results of this submission may be viewed at:
http://development.smartsite.com.ua/node/16/submission/13
)
please, if possible, point me to some decision
thnks
Comment #10
quicksketchSounds like this issue is solved. @ganges see #785544: Confirmation Page is an Array.
Comment #12
keva commentedthe original issue can also be solved by deleting the following line (57) in webformblock.module:
$form['#redirect'] = $current_url;not the ideal solution, but it works for now.
Webform Block 6.x-1.x-dev
Webform 6.x-3.0-beta5
Comment #13
betz commented#12 did the trick