0

I am developing a site in Drupal 7. I am using webform for creating a "contact us" form. After submitting the from successfully, the page is redirected to a confirmation page where the url is http://www.somesite.com/node/11/done?sid=3. I want this particular url as http://www.somesite.com/thankyou.

I tried to set the url alias for node/11/done?sid=% as thankyou. But unfortunately it doesn't work for me.

Any suggestions about a solution for this?

  • 1
    The default submission URL is dynamic (hence the sid=), but there's an option to send your submission to a custom URL, does this work for you ? – tostinni Nov 29 '11 at 16:37
  • Thanks for your reply.. I tried with custom url. But only the node/11/done portion of the url changes to thankyou . Now the url will be thankyou?sid=3. I need the whole url to be replaced by thankyou. – neeraja Nov 30 '11 at 4:41
  • i have the same issue, and i use the url alias to solve my problem but the query string '?sid=..' always displayed, i think we can remove it with jquery – Tayba Mar 20 '13 at 13:39
1

By default, webform will redirect you to an internal URL with the submission parameter sid. The only way to prevent this parameter to being displayed is to redirect the user to an external URL.

What you can do is set up a bit.ly short URL that targets your thankyou page, therefore webform will think it's an external URL, won't add the submission parameter and the user will land on your http://www.somesite.com/thankyou page.

  • 1
    Thanks @tostinni.. But I got a solution for it using another method. I used form_alter of the webform and created a custom function for submit in which I changed the url of submission page. – neeraja Dec 1 '11 at 4:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.