Redirecting user to some other url after webform processing

Currently I am using $node->webform['confirmation'] in Webform to redirects the user after form processing has been completed.

The code sample is as follows

<?php
// Redirect to msn when done.
$node->webform['confirmation'] = 'http://msn.com';

// Redirect to node 2 (an internal Drupal path).
$node->webform['confirmation'] = 'internal:node/2';
?>

But unfortunately I am unable to get rid of the &sid=xxx. Is there a way to get rid of the ?sid=[submission-id] that is appended even if i use redirects?

 #

hello i tried the same as suggested above to redirect to external url like this

($node->webform['confirmation'] = 'http://msn.com';) but unfortunately it is not working

for me please advice . I placed this code in additional processing and updated the setting

to confirmation . Please advice ..

Thanks in Advance

 
 #

This post helped me a lot. Thanks!

 
 #

I'm having this problem too, anyone found a cure yet?

Can you post your .htaccess solution?

 
 #

Very good post, thanks a lot.

 
 #

I could not able to figure out the solution from drupal, but via .htaccess i remove the ?sid parameter.

If you did a better solution, please do let me know.
Thanks you

 
 #

I'm having the same problem. Have you come across any solution?

Thanks - Bob

 

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.

Cumulus Tag Cloud

Kiran Says

SEO Architect,SEO Specialist reflect my values.

By enduring black hat methods the SEO industry is setting itself up for washout and sleepwalking into oblivion.

Jobs in India